Skip to main content
Searches across everything the project knows — both the ingested document content and the accumulated conversation memories — and returns the matches grouped by source. A single query surfaces the full picture, which is what you typically want in a chat assistant that grounds answers on documents and personalizes them with memories.
Items in documents and memories have the same shapes as Search Documents and Search Memories respectively — the relevant request knobs (top_n, threshold) carry the same meaning here.
Permission required: project:search · instance

Path Parameters

string
required
Project ID

Request Body

string
required
Natural-language search query. Used by both sub-searches.
string
required
User ID filter for the memory sub-search. Document search ignores this field.
integer
default:"10"
Maximum number of results to return, 1–1000. Applied to both document and memory matches — e.g. top_n=10 yields up to 10 documents and up to 10 memories.
number
default:"0.3"
Minimum similarity score for memory results. Scores below this are filtered out. Does not apply to documents.
boolean
default:"false"
Include conflict info on memory results.

Response

object
Either list can be empty if no matches cross the threshold. Treat documents and memories independently — they’re just two lookups returned together for convenience.