-
Notifications
You must be signed in to change notification settings - Fork 228
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
IndexError: list index out of range #16
Comments
Facing the same issue. can anyone tell me how to resolve this issue. Now i had figured it my API key is expired |
solve hua kya please koi mujhe ye project bana ke de skta h kya i paying them 1.5 k |
solve hua kya ritik |
Hi @ahujaravinder022 There might also be an issue with the embeddings array. You can check this by printing the shape of the embeddings with: |
File "C:\Users\Ravinder.Ahuja\Desktop\Generative AI Course wirh contents\Projects\langchain-main (1)\langchain-main\2_news_research_tool_project\mm2\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "C:\Users\Ravinder.Ahuja\Desktop\Generative AI Course wirh contents\Projects\langchain-main (1)\langchain-main\2_news_research_tool_project\main.py", line 43, in
vectorstore_openai = FAISS.from_documents(docs, embeddings)
File "C:\Users\Ravinder.Ahuja\Desktop\Generative AI Course wirh contents\Projects\langchain-main (1)\langchain-main\2_news_research_tool_project\mm2\lib\site-packages\langchain\vectorstores\base.py", line 417, in from_documents
return cls.from_texts(texts, embedding, metadatas=metadatas, **kwargs)
File "C:\Users\Ravinder.Ahuja\Desktop\Generative AI Course wirh contents\Projects\langchain-main (1)\langchain-main\2_news_research_tool_project\mm2\lib\site-packages\langchain\vectorstores\faiss.py", line 603, in from_texts
return cls.__from(
File "C:\Users\Ravinder.Ahuja\Desktop\Generative AI Course wirh contents\Projects\langchain-main (1)\langchain-main\2_news_research_tool_project\mm2\lib\site-packages\langchain\vectorstores\faiss.py", line 562, in __from
index = faiss.IndexFlatL2(len(embeddings[0]))
can someone help in resolving this issue.
The text was updated successfully, but these errors were encountered: