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.