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.0.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.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_deeplake-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d189209b614a7dddcaddc885c27ff49293b01748f81052b1d7197f65a8f2b50a
MD5 149bd8ff0ce1ad1f84367d9d28b1af4b
BLAKE2b-256 50361bd0a947f44c52392c881766487f0dc88e286d911b8ddadb060a72ae0c64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_deeplake-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f3245a955b32276ab5f8a41bd20b062ff0655fd595ab27e653809537bc957f0
MD5 4cde3b985edac832d5d64b59b4e7c40a
BLAKE2b-256 df62734e5f73f3f83455bc2488fb4eefd7d78cbe07987400c6614257d1ed62eb

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