Search Over Memory Artifacts
Find relevant Facts or individual Messages across a Session, User, or more.
Searching for Facts or Messages
Zep offers similarity search over Facts and Messages stored within a Session, select Sessions, across all Sessions of a User, or across your entire Zep Project. This enables you to populate prompts with past conversations and conversation artifacts that are contextually similar to a specific query, organizing the results by a similarity Score.
Choosing Between Facts and Messages
Zep supports searching over Facts and Messages. Since individual messages might have little contextual information (consider a message containing just “yes”), Facts typically yield higher quality search results.
Constructing Search Queries
Zep’s Collection and Memory search support semantic search queries, JSONPath-based metadata filters, and a combination of both.
Memory search also supports querying by message creation date.
Read more about constructing search queries.
Python
TypeScript
Hybrid Search for Chat History with Metadata Filters
Besides the vector similarity search for Facts and Messages stored in Zep, you can also use metadata filters for your searches. You also have the option to conduct searches based purely on metadata.