pb.search retrieves across the graph’s entities and the sources behind them.
It accepts a query string with options, or a full request object.
Signature
Basic usage
Options
Common fields onSearchOptions / SearchRequest:
The search text.
What to return, for example
["entities", "chunks"].Restrict to specific entity types.
Restrict to entities of specific shapes.
Restrict to specific sources.
Retrieval mode (for example hybrid, semantic, or lexical).
How much neighboring context to pull in.
Include graph neighbors of matched entities.
Minimum relevance for a result to be included.
Maximum number of results.
Result offset for pagination.
Required when your key spans more than one project.
Related endpoints
The SDK callsPOST /v1/search. The API also exposes lower-level retrieval and
graph search directly. See the API endpoints.