llama-index readers deeplake integration
Project description
LlamaIndex Readers Integration: Deeplake
Overview
DeepLake Reader is a tool designed to retrieve documents from existing DeepLake datasets efficiently.
Installation
You can install DeepLake Reader via pip:
pip install llama-index-readers-deeplake
To use Deeplake Reader, you must have an API key. Here are the installation instructions
Usage
from llama_index.core.schema import Document
from llama_index.readers.deeplake import DeepLakeReader
# Initialize DeepLakeReader with the token
reader = DeepLakeReader(token="<Your DeepLake Token>")
# Load data from DeepLake
documents = reader.load_data(
query_vector=[0.1, 0.2, 0.3], # Query vector
dataset_path="<Path to Dataset>", # Path to the DeepLake dataset
limit=4, # Number of results to return
distance_metric="l2", # Distance metric
)
This loader is designed to be used as a way to load data into LlamaIndex and/or subsequently used as a Tool in a LangChain Agent.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file llama_index_readers_deeplake-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_deeplake-0.3.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 259cce770a2964d671911b57603f852dad605678df140fd2e8a46c47c4ef5720 |
|
MD5 | 11c0775a277046c0c38235d7e3a87183 |
|
BLAKE2b-256 | c57f616c79e1f3be4ae3bfce4ed6ae0d5b9c9dc796ba5abe93b3f6c367561f7f |
File details
Details for the file llama_index_readers_deeplake-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_deeplake-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f34dc356c9545e0a1df3758f937c70d8ed391ec242bb42c150e93e441a13f13 |
|
MD5 | baee3bbc7efcd6302ea89a913e141339 |
|
BLAKE2b-256 | 59b707878771be1a16b6265edc9e8fd61c75147f28d3c0e41c46dd46a99e97b3 |