Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LangChain: cratedb_rag_customer_support.ipynb trips with CellTimeoutError #297

Closed
amotl opened this issue Feb 13, 2024 · 2 comments
Closed

Comments

@amotl
Copy link
Member

amotl commented Feb 13, 2024

Problem

cratedb_rag_customer_support.ipynb has been introduced just recently.

It looks like the call to embeddings.embed_documents(pages_text) might take longer than expected / uses more compute resources / stalls for any other reasons?

E           nbclient.exceptions.CellTimeoutError: A cell timed out while it was being executed, after 120 seconds.
E           The message was: Cell execution timed out.
E           Here is a preview of the cell contents:
E           -------------------
E           embeddings = OpenAIEmbeddings(deployment='my-embedding-model', chunk_size=1)
E           pages_embeddings = embeddings.embed_documents(pages_text)
E           -------------------

/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/nbclient/client.py:801: CellTimeoutError
------------------------------ Captured log call -------------------------------
ERROR    pytest_notebook.execution:client.py:795 Timeout waiting for execute reply (120s).

-- https://github.com/crate/cratedb-examples/actions/runs/7881120885/job/21504241805#step:6:848

Q & A

Can you dig a bit into this, @marijaselakovic? Do you have any idea where this may be coming from, or how it can be improved?

NB: It's not a unique thing. We are also taking care about the same details at GH-170 and GH-299.

@marijaselakovic
Copy link
Contributor

marijaselakovic commented Feb 15, 2024

Fixed here: #310
Chunk size was an issue.

@amotl
Copy link
Member Author

amotl commented Feb 27, 2024

Thanks!

@amotl amotl closed this as completed Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants