ManagedSearchConfiguration¶
Structure Class¶
ManagedSearchConfiguration
dataclass
¶
Configuration for managed search in a knowledge base. Managed search automatically determines the best search strategy based on your data store configuration.
Attributes¶
filter
class-attribute
instance-attribute
¶
filter: RetrievalFilter | None = field(repr=False, default=None)
Specifies the filters to use on the metadata attributes in the knowledge base data sources before returning results. For more information, see Query configurations. See the examples below to see how to use these filters.
This data type is used in the following API operations:
-
Retrieve request -- in the
filterfield -
RetrieveAndGenerate request -- in the
filterfield
number_of_results
class-attribute
instance-attribute
¶
number_of_results: int | None = None
The number of results to retrieve.
reranking_configuration
class-attribute
instance-attribute
¶
reranking_configuration: ManagedSearchRerankingConfiguration | None = None
Contains configurations for reranking the results retrieved from the managed search.
reranking_model_type
class-attribute
instance-attribute
¶
reranking_model_type: RerankingModelType | None = None
The type of reranking model to use when reranking results retrieved from
the managed search. Use CUSTOM to specify a model, MANAGED to use
the service default, or NONE to disable reranking.