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.2.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for llama_index_readers_deeplake-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e8bbaf88a4844f151b48016fdfdba3a7e8fed34b109298aa2dbbcd0dc26a4ed0
MD5 d43e1ca8af1c7d01348c4bb83e49a27f
BLAKE2b-256 ef69b62a0c0cf431b1797b975dd8ac13b9b1631266d4e1b25c0072f002ba4f03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_deeplake-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2063ea39226ecba673df89914661970bd49650531b5601ce3bd293daf391b02d
MD5 5323b6cd88fd9563f9d064d26b024411
BLAKE2b-256 0c0c8a5679e0761efb00018c4ed05a45090156f5f25c032f4c4f15e08c1df153

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