Deeplake
DeepLakeReader #
Bases: BaseReader
DeepLake reader.
Retrieve documents from existing DeepLake datasets.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_name |
Name of the deeplake dataset. |
required |
Source code in llama-index-integrations/readers/llama-index-readers-deeplake/llama_index/readers/deeplake/base.py
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 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
load_data #
load_data(query_vector: List[float], dataset_path: str, limit: int = 4, distance_metric: str = 'l2') -> List[Document]
Load data from DeepLake.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_name |
str
|
Name of the DeepLake dataset. |
required |
query_vector |
List[float]
|
Query vector. |
required |
limit |
int
|
Number of results to return. |
4
|
Returns:
Type | Description |
---|---|
List[Document]
|
List[Document]: A list of documents. |
Source code in llama-index-integrations/readers/llama-index-readers-deeplake/llama_index/readers/deeplake/base.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|