Skip to main content

llama-index readers dashvector integration

Project description

LlamaIndex Readers Integration: Dashvector

Overview

DashVector Reader is a tool designed to retrieve documents from DashVector clusters efficiently.

Installation

You can install DashVector Reader via pip:

pip install llama-index-readers-dashvector

To use DashVector, you must have an API key. Here are the installation instructions

Usage

from llama_index.core.schema import Document
from llama_index.readers.dashvector import DashVectorReader

# Initialize DashVectorReader with the API key and cluster endpoint
reader = DashVectorReader(
    api_key="<Your API Key>", endpoint="<Cluster Endpoint>"
)

# Load data from DashVector
documents = reader.load_data(
    collection_name="<Collection Name>",
    vector=[0.1, 0.2, 0.3],  # Query vector
    topk=10,  # Number of results to return
    separate_documents=True,  # Whether to return separate documents
    filter=None,  # Optional: Filter conditions
    include_vector=True,  # Whether to include the embedding in the response
    output_fields=None,  # Optional: Fields Filter
)

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_dashvector-0.5.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file llama_index_readers_dashvector-0.5.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_dashvector-0.5.0.tar.gz
Algorithm Hash digest
SHA256 fe1a808be4d12a2bb2142bf5d3b3168c2609abff3d415d0d64f03e9cf3711ecb
MD5 6116f1bb0db18b91ff5e45b32215655c
BLAKE2b-256 7e74fcb1236ba7f04bfb095b870dc976acc3d41f4e74fb536aa9b1aeacbca270

See more details on using hashes here.

File details

Details for the file llama_index_readers_dashvector-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_dashvector-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a88c7560d050779a0a586ef6422aa612269e8946c02020734674e92e0380dd74
MD5 7425a4e6e59d763f888d4abb4389d6d7
BLAKE2b-256 e8bcbbb3f217e38db78a15d35d3588d95f7de35795ae22059e3ff8b02ca24397

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