智能体搜索
智能体搜索读取器 #
基类:EventBaseReader
智能体搜索读取器。
workflows/handler.py 中的源代码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[文档]
从由SciPhi托管的AgentSearch加载数据。
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
collection_name
|
str
|
Milvus集合的名称。 |
required |
query_vector
|
List[float]
|
查询向量。 |
required |
limit
|
int
|
返回结果的数量。 |
required |
返回:
| 类型 | 描述 |
|---|---|
List[文档]
|
List[Document]: 文档列表。 |
workflows/handler.py 中的源代码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 | |
选项: 成员:- AgentSearchReader