Vector db
VectorDBToolSpec #
Bases: BaseToolSpec
Vector DB tool spec.
Source code in llama-index-integrations/tools/llama-index-tools-vector-db/llama_index/tools/vector_db/base.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
auto_retrieve_fn #
auto_retrieve_fn(query: str, top_k: int, filter_key_list: List[str], filter_value_list: List[str]) -> str
Auto retrieval function.
Performs auto-retrieval from a vector database, and then applies a set of filters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query |
str
|
The query to search |
required |
top_k |
int
|
The number of results to retrieve |
required |
filter_key_list |
List[str]
|
The list of filter keys |
required |
filter_value_list |
List[str]
|
The list of filter values |
required |
Source code in llama-index-integrations/tools/llama-index-tools-vector-db/llama_index/tools/vector_db/base.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|