We get the index # from the index ddb table (ie. '0')
We use this index # and User ID to create a session id which we then use within Langchain
We finally update the index # in the index table.
I'd like subsequent invocations of the lambda to recall the existing history (ie. stay on the same index). So that if I ask follow up question to the LLM it remembers the history.
Before I start making changes to the file, I wanted to confirm my understanding is correct or if I'm going about this incorrectly. I'm pretty new with LLMs and LangChain but what I'm doing seems to me it would be the entire intent of having "memory"; which makes me feel I'm missing something.
Hey Kyle!
Loving this project! Hey question for you:
In the chat.py we have this:
If I'm understanding this correctly:
I'd like subsequent invocations of the lambda to recall the existing history (ie. stay on the same index). So that if I ask follow up question to the LLM it remembers the history.
Before I start making changes to the file, I wanted to confirm my understanding is correct or if I'm going about this incorrectly. I'm pretty new with LLMs and LangChain but what I'm doing seems to me it would be the entire intent of having "memory"; which makes me feel I'm missing something.
Thanks!