Agent 搜索
AgentSearchReader #
基类:BaseReader
AgentSearch 读取器。
源码位于 llama-index-integrations/readers/llama-index-readers-agent-search/llama_index/readers/agent_search/base.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|
load_data #
load_data(query: str, search_provider: str = 'bing', llm_model: str = 'SciPhi/Sensei-7B-V1') -> List[Document]
从 SciPhi 托管的 AgentSearch 加载数据。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
collection_name
|
str
|
Milvus collection 的名称。 |
必需 |
query_vector
|
List[float]
|
查询向量。 |
必需 |
limit
|
int
|
返回结果的数量。 |
必需 |
返回值
类型 | 描述 |
---|---|
List[Document]
|
List[Document]:文档列表。 |
源码位于 llama-index-integrations/readers/llama-index-readers-agent-search/llama_index/readers/agent_search/base.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|