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.1.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.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_dashvector-0.5.1.tar.gz
Algorithm Hash digest
SHA256 9df404d011aa154c803dce45ef89b5588e9ca8ef9ea0200a61a6a3386f7e5bfc
MD5 d4551af7dcfc679607283118a9896881
BLAKE2b-256 be67471488562a7f7c66a5173fe9df049ffe4b420e7606f15020102085996009

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_dashvector-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d77959b67d7aa2e16e6f9acdc0e14cfc0b8a783e700ef1867b97d5bcd145814
MD5 763c4382681bde2cf520e62011f5f925
BLAKE2b-256 c2cd2a275debcc335169b6084b4736720581e77d36d16675c22434c337b13b77

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