Open KaifAhmad1 opened 1 month ago
Hello! We're a group of students from the University of Toronto Scarborough, and we're excited to contribute to LangChain. We'd love the opportunity to investigate this bug further.
Hi @KaifAhmad1, we are a group of students that took a look at this issue, and it appears that the list index out of range
issue could be from the format of the input being passed to the agent. The agent is currently designed to accept a dictionary format for the query, specifically accepting an input like{"input": "Your query here"}
. If you are currently passing a plain string (e.g query = "List all details on BFSI security incidents in India. | Type: General | Time: All Time | Region: Global"
), try changing it to the dictionary format to see if that resolves the issue. For example, query = {"input": "List all details on BFSI security incidents in India."}
Please let us know if this was helpful!
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
Getting List out of range error when passing query to research engine. It is working fine on google colab but when I am running streamlit version of this research engine I am getting list index out of range error.
System Info
pip ==24.2 python == 3.10.10 OS == Windows 11 x64