What memory type from langchain would make the most sense for a annual report chatbot…
- User
What memory type from langchain would make the most sense for a annual report chatbot where the available tokens are very limited?
Assistant
For a annual report chatbot with limited available tokens, using a "Retrieval based Memory" from LangChain would make the most sense. Retrieval-based memories, such as DPR (Dense Passage Retriever) or ColBERT (Collobert Retriever), work by indexing and storing a collection of documents or passages and then using those indexes to efficiently retrieve relevant information when queried. These types of memories are efficient in terms of storage and retrieval, allowing the chatbot to provide accurate and contextual information from the annual report data despite the limited token budget.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.