IndexError: list index out of range
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
can someone help in resolving this issue.
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
The issue you're facing is most likely related to faiss or the embeddings you are passing. Ensure that the library is installed correctly using either:
pip install faiss-cpu
pip install faiss-gpu
There might also be an issue with the embeddings array. You can check this by printing the shape of the embeddings with: print("Embedding shape:", len(embeddings), len(embeddings[0]) if embeddings else "Empty embeddings") It will help you identify if the embeddings array is empty or has inconsistent dimensions."