source, reference_id, tags, and metadata.
All of these fields can then be used as filters when using our retrieval APIs, such that search results and chat responses will only query the memos that match the filters.
These fields (including all the metadata fields you provide) are indexed so not only will adding filters not affect retrieval performance, it will actually make it faster, by giving our system less context to process.
We recommend using reference_id to match a memo to an ID in your own system (e.g. a document ID) but other fields can be used for you to create knowledge spaces.
For instance, you can use user_id:12345 as source or set user_id = 12345 as a metadata field.
When filtering, you would then use a filter like this:
[email protected].