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.2.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_deeplake-0.2.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8bbaf88a4844f151b48016fdfdba3a7e8fed34b109298aa2dbbcd0dc26a4ed0 |
|
MD5 | d43e1ca8af1c7d01348c4bb83e49a27f |
|
BLAKE2b-256 | ef69b62a0c0cf431b1797b975dd8ac13b9b1631266d4e1b25c0072f002ba4f03 |
File details
Details for the file llama_index_readers_deeplake-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_deeplake-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2063ea39226ecba673df89914661970bd49650531b5601ce3bd293daf391b02d |
|
MD5 | 5323b6cd88fd9563f9d064d26b024411 |
|
BLAKE2b-256 | 0c0c8a5679e0761efb00018c4ed05a45090156f5f25c032f4c4f15e08c1df153 |