Zep
ZepReader #
Bases: BaseReader
Zep document vector store reader.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
api_url |
str
|
Zep API URL |
required |
api_key |
str
|
Zep API key, optional |
None
|
Source code in llama-index-integrations/readers/llama-index-readers-zep/llama_index/readers/zep/base.py
9 10 11 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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
load_data #
load_data(collection_name: str, query: Optional[str] = None, vector: Optional[List[float]] = None, metadata: Optional[Dict[str, Any]] = None, top_k: Optional[int] = 5, separate_documents: Optional[bool] = True, include_values: Optional[bool] = True) -> List[Document]
Load data from Zep.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
collection_name |
str
|
Name of the Zep collection. |
required |
query |
Optional[str]
|
Query string. Required if vector is None. |
None
|
vector |
Optional[List[float]]
|
Query vector. Required if query is None. |
None
|
metadata |
Optional[Dict[str, Any]]
|
Metadata to filter on. |
None
|
top_k |
Optional[int]
|
Number of results to return. Defaults to 5. |
5
|
separate_documents |
Optional[bool]
|
Whether to return separate documents per retrieved entry. Defaults to True. |
True
|
include_values |
Optional[bool]
|
Whether to include the embedding in the response. Defaults to True. |
True
|
Returns:
Type | Description |
---|---|
List[Document]
|
List[Document]: A list of documents. |
Source code in llama-index-integrations/readers/llama-index-readers-zep/llama_index/readers/zep/base.py
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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|