General Introduction
Zep is a platform designed to provide long-lasting memory solutions for AI applications.Zep helps AI assistants continuously learn and memorize user interactions to build a user's knowledge graph.Zep supports a variety of programming languages and frameworks, including Python, TypeScript, and Go, and is able to integrate user chat history and business data, with features such as fast memory extraction, fine-grained memory control, etc. Zep not only improves response accuracy, but also significantly reduces disillusionment and operational costs. Zep not only improves the response accuracy of AI applications, but also significantly reduces illusion, latency, and operational costs.
Zep is a long-term memory layer for AI applications and intelligences that continuously learns from user interactions and changing business data.Zep ensures that your intelligences have a full and complete understanding of the user, enabling you to build more personalized and accurate user experiences.
Using user chat history and business data, Zep is able to automatically build a knowledge graph for each of your users. The knowledge graph contains entities, relationships and facts related to your users. As facts change or are replaced, Zep updates the graph to reflect their new state. By using Zep, you can build prompts that provide your intelligences with the information they need to personalize their responses and solve problems. Ensuring that your cues have the right information reduces illusions, improves recall, and reduces the cost of Large Language Model (LLM) calls.
Recommended Learning: https://blog.getzep.com/
Function List
- memory fusion: Fusing user interactions and business data into a knowledge graph that provides accurate contextual information.
- Rapid Memory Extraction: Getting relevant results from memory at the millisecond level supports large-scale user use.
- Fine-grained memory control: Adjust memory extraction and relevance by customizing the scoring framework and controls.
- Security and Privacy Compliance: Meets security and privacy compliance requirements such as SOC 2 Type II, CCPA and GDPR.
- Multi-language and framework support: Support for multiple programming languages and frameworks such as Python, TypeScript and Go.
- Production-level scalability: For production environments that can easily scale to millions of users.
Using Help
Installation process
- Clone Zep Warehouse::
git clone https://github.com/getzep/zep.git
- Configuring the Zep Server: Editors
zep.yaml
file to set logging levels, HTTP binding addresses and ports, Postgres database connection information, and so on.
log: level: info
level: info
format: console
log: level: info format: console
host: 0.0.0.0
port: 8000
postgres: user: postgres
user: postgres
password: postgres
host: localhost
port: 5432
database: postgres
- Starting the Zep Server::
. /zep up
Guidelines for use
- Adding Chat Messages to the Knowledge Graph::
await zep_client.memory.add(session_id, messages=[Message(role="user", content="I can't log in!")])
- Adding Business Data to the Knowledge Graph::
await zep_client.graph.add(user_id=user_id, type="json", data={"account_status": "suspended"})
- Get the memory of the current session::
memory = zep_client.memory.get(session_id="session_id")
print(memory.context)
Main function operation flow
- memory fusion: Zep provides accurate contextual information by fusing user interactions and business data into a knowledge graph. Users can add chat messages and business data to the Knowledge Graph via API calls, and Zep intelligently integrates the new information into the existing context.
- Rapid Memory Extraction: Zep's ability to fetch relevant results from memory in milliseconds ensures that AI applications can respond quickly to user requests. Users can get the relevant memory for the current session via an API call and Zep will return the most relevant contextual information.
- Fine-grained memory control: Users can adjust memory extraction and relevance by customizing the scoring framework and controls.Zep provides flexible memory control options that allow users to adjust the way memories are extracted and the relevance of the results to their specific needs.
- Security and Privacy Compliance: Zep meets security and privacy compliance requirements such as SOC 2 Type II, CCPA and GDPR to ensure the security and privacy of user data. Users can confidently add business data and user interactions to Zep, and Zep will ensure that the data is securely stored and processed.