-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Error when running ingest.py #26
Comments
That implies the document loader isn't either right or there's nothing for it to load. You should check for both |
You can replace the loader with unstructured url loader: from langchain.document_loaders import UnstructuredURLLoader def ingest_docs(): |
This works awesome! Solved it on my end |
This fixes langchain-ai#26 as suggested by @Jeru2023
I got an error as below when running "python ingest.py"
langchain/vectorstores/faiss.py", line 251, in from_texts
index = faiss.IndexFlatL2(len(embeddings[0]))
IndexError: list index out of range
Could you please help on it, thanks!
The text was updated successfully, but these errors were encountered: