Skip to main content

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

llama_index_readers_deeplake-0.3.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_readers_deeplake-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_deeplake-0.3.0.tar.gz
Algorithm Hash digest
SHA256 259cce770a2964d671911b57603f852dad605678df140fd2e8a46c47c4ef5720
MD5 11c0775a277046c0c38235d7e3a87183
BLAKE2b-256 c57f616c79e1f3be4ae3bfce4ed6ae0d5b9c9dc796ba5abe93b3f6c367561f7f

See more details on using hashes here.

File details

Details for the file llama_index_readers_deeplake-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_deeplake-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f34dc356c9545e0a1df3758f937c70d8ed391ec242bb42c150e93e441a13f13
MD5 baee3bbc7efcd6302ea89a913e141339
BLAKE2b-256 59b707878771be1a16b6265edc9e8fd61c75147f28d3c0e41c46dd46a99e97b3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page