Error: Tuple Indices Must Be Integers or Slices in Chatbot Responses
lydacious opened this issue · 0 comments
lydacious commented
Hello,
So I am running main.py with langchain and after I inserted an md file I was able to ask it a question. However, when I try to ask a second question, I get this response:
{
"status": true,
"msg": "Something went wrong:\ntuple indices must be integers or slices, not str",
"debug": {
"original question": "Which tech does Lagrange use?",
"modified question": "Which tech does Lagrange use?",
"answer": "Something went wrong:\ntuple indices must be integers or slices, not str"
}
},
200
]
P.S Every time I use a new session id, my first question is instantly answered but the second one returns this response.