chat_history in conversation_retrieval dosen't seem to be working #61
-
when I was trying to implement a solution with conversation_retrieval_chain, I'm getting "A single string input was passed in, but this chain expects multiple inputs ({'question', 'chat_history'}). When a chain expects multiple inputs, please call it by passing in a dictionary, eg |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi! There's already a demo example for conversational retrieval chain. You can find the code here: https://github.com/ajndkr/lanarky/blob/main/examples/app/conversational_retrieval.py and the usage instructions here: https://github.com/ajndkr/lanarky/tree/main/examples#conversational-retrieval you can check it out and let me know if it works for you. |
Beta Was this translation helpful? Give feedback.
-
@MahaleVivek the |
Beta Was this translation helpful? Give feedback.
-
I got it to work for websocket by adding a memory like this:
|
Beta Was this translation helpful? Give feedback.
@MahaleVivek the
chat_history
field accepts a list of tuples. I've updated the demo example. Please see https://github.com/ajndkr/lanarky/blob/main/examples/README.md#conversational-retrieval