Configuration for retrieving grounding content from a Corpus or Document created using the Semantic Retriever API.

source str

Required. Name of the resource for retrieval, e.g. corpora/123 or corpora/123/documents/abc.


Required. Query to use for similarity matching Chunk\ s in the given resource.

metadata_filters MutableSequence[]

Optional. Filters for selecting Document\ s and/or Chunk\ s from the resource.

max_chunks_count int

Optional. Maximum number of relevant Chunk\ s to retrieve.

minimum_relevance_score float

Optional. Minimum relevance score for retrieved relevant Chunk\ s.