Memobase tracks and models a comprehensive profile for each user. You can use this profile in your AI prompts to provide a global understanding of the user. While user profiles are generally concise, it is good practice to control the final size of the context you inject into your prompts. Memobase provides several parameters to help you filter profiles at retrieval time.Documentation Index
Fetch the complete documentation index at: https://docs.memobase.io/llms.txt
Use this file to discover all available pages before exploring further.
Rule-Based Filtering
You can pass rules to the Memobase API to filter profiles based on specific criteria:max_token_size: Sets the maximum token size for the entire profile context.prefer_topics: Ranks specified topics higher, making them more likely to be included in the final output.only_topics: Includes only the specified topics, filtering out all others.
Context-Aware Filtering
Memobase also offers a powerful semantic filtering capability. By passing the latest chat messages to the API, you can retrieve only the most “contextual” or relevant profiles for the current conversation. This is more advanced than a simple embedding-based search. Memobase uses the LLM to reason about which profile attributes would be most helpful for generating the next response. For example, if a user says, “Find some restaurants for me,” Memobase will intelligently rank profiles likecontact_info::city, interests::food, and health::allergies higher in the results.