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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_deeplake-0.4.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_deeplake-0.4.1.tar.gz
Algorithm Hash digest
SHA256 fa40832cdc0acea4ac61c666d3c27cd7f37ce518cbbdd473b57465d05460ae77
MD5 2a978df406a1dbc9453ac0cb3fcacbc2
BLAKE2b-256 61e97d5fc26c47500385b03aae4e71e85d270a7a36d4983f66c4e0793c037d30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_deeplake-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca076b16149ff5d3bf25c390280155e287114ba843dd1bc84f76318c4a22af67
MD5 6c2e7a74332fd853f22d5844aad34908
BLAKE2b-256 4621bad20e191838e839a83d1670aafd04a8145f29d2cf6e1c2a2b8b1ac0cc44

See more details on using hashes here.

Supported by

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