DeepLakeReader#

class llama_index.readers.DeepLakeReader(token: Optional[str] = None)#

Bases: BaseReader

DeepLake reader.

Retrieve documents from existing DeepLake datasets.

Parameters

dataset_name – Name of the deeplake dataset.

Methods Summary

load_data(query_vector, dataset_path[, ...])

Load data from DeepLake.

Methods Documentation

load_data(query_vector: List[float], dataset_path: str, limit: int = 4, distance_metric: str = 'l2') List[Document]#

Load data from DeepLake.

Parameters
  • dataset_name (str) – Name of the DeepLake dataset.

  • query_vector (List[float]) – Query vector.

  • limit (int) – Number of results to return.

Returns

A list of documents.

Return type

List[Document]