Skip to main content

llama-index readers qdrant integration

Project description

LlamaIndex Readers Integration: Qdrant

Overview

The Qdrant Reader allows you to retrieve documents from existing Qdrant collections. Qdrant is a similarity search engine that helps you efficiently search and retrieve similar items from large datasets based on vector embeddings.

For more detailed information about Qdrant, visit Qdrant

Installation

You can install the Qdrant Reader via pip:

pip install llama-index-readers-qdrant

Usage

from llama_index.readers.qdrant import QdrantReader

# Initialize QdrantReader
reader = QdrantReader(
    location="<Qdrant Location>",
    url="<Qdrant URL>",
    port="<Port>",
    grpc_port="<gRPC Port>",
    prefer_grpc="<Prefer gRPC>",
    https="<Use HTTPS>",
    api_key="<API Key>",
    prefix="<URL Prefix>",
    timeout="<Timeout>",
    host="<Host>",
)

# Load data from Qdrant
documents = reader.load_data(
    collection_name="<Collection Name>",
    query_vector=[0.1, 0.2, 0.3],
    should_search_mapping={"text_field": "text"},
    must_search_mapping={"text_field": "text"},
    must_not_search_mapping={"text_field": "text"},
    rang_search_mapping={"text_field": {"gte": 0.1, "lte": 0.2}},
    limit=10,
)

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_qdrant-0.2.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

Supported by

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