EcosystemLangChainExamples

RAG + Message History example

You can generate a Project API Key in Zep Dashboard.

Make sure you have the following environment variables specified when running these examples:

ZEP_API_KEY - API key to your zep project

OPENAI_API_KEY - Open AI api key which the chain will require to generate the answer

You will need to have a session_id in place to invoke the final chain in this example

You can create a session by running either Memory example

in python sdk repository or Memory example in typescript sdk repository.

You can find a complete RAG + Message History examples in the SDK examples

They showcase how to use the ZepChatMessageHistory and ZepVectorStore classes as part of one chain.

Python RAG + Message history example

Typescript RAG + Message history example