examples/zep-memory-chain-example/README.md
Hello there! 👋 This example demonstrates how to use Zep memory with LangChain and OpenAI to create a conversational AI system. Let's break down what this exciting code does!
Sets up the environment: The code uses environment variables for the Zep API key and session ID.
Initializes clients:
Creates a conversation chain:
Runs two conversation turns:
Prints responses: Displays the AI's responses to each input.
Set the required environment variables:
ZEP_API_KEY: Your Zep API keyZEP_SESSION_ID: A unique session identifierOPENAI_API_KEY: Your OpenAI API key (required by the OpenAI client)Run the Go program:
go run main.go
You should see responses from the AI to both inputs. The second response should demonstrate that the AI remembers the name "John Doe" from the first interaction.
Enjoy exploring this powerful combination of Zep, LangChain, and OpenAI! 🚀🤖