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
Built Distribution
File details
Details for the file llama_index_readers_dashvector-0.4.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_dashvector-0.4.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92f75a9c5535149e7a6b3c4369b14810bd44105c97ee2aa432e484836b47ad86 |
|
MD5 | 0989fed77c1ac931cfc2fac63b7ad233 |
|
BLAKE2b-256 | c4667adeae98775931b8797510fefc03e8ea300df3eb0c4b76230494ff348e10 |
File details
Details for the file llama_index_readers_dashvector-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_dashvector-0.4.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f36e5a3926db41545b0930b7a775914a6e4377234b58d23704ac148617f0ea36 |
|
MD5 | 56ad870e8732f926024fdac57326fccd |
|
BLAKE2b-256 | ae747ecb8d1db5bf2d624bdc4b18237c4eca545451317305623e3b0d64da880f |