aiq.tool.document_search#
Attributes#
Classes#
This tool retrieves relevant documents for a given user query. The input query is mapped to the most appropriate |
Functions#
|
Module Contents#
- logger#
- class MilvusDocumentSearchToolConfig(/, **data: Any)#
Bases:
aiq.data_models.function.FunctionBaseConfig
This tool retrieves relevant documents for a given user query. The input query is mapped to the most appropriate Milvus collection database. This will return relevant documents from the selected collection.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.- llm_name: aiq.data_models.component_ref.LLMRef = None#
- async document_search(
- config: MilvusDocumentSearchToolConfig,
- builder: aiq.builder.builder.Builder,