Skip to main content

llama-index readers pathway integration

Project description

LlamaIndex Readers Integration: Pathway

Overview

Pathway Reader is a utility class for retrieving documents from the Pathway data indexing pipeline. It queries the Pathway vector store to get the closest neighbors of a given text query.

Installation

You can install Pathway Reader via pip:

pip install llama-index-readers-pathway

Usage

from llama_index.readers.pathway import PathwayReader

# Initialize PathwayReader with the URI and port of the Pathway server
reader = PathwayReader(host="<Pathway Host>", port="<Port>")

# Load data from Pathway
documents = reader.load_data(
    query_text="<Query Text>",  # The text to get the closest neighbors of
    k=4,  # Number of results to return
    metadata_filter="<Metadata Filter>",  # Filter to be applied
)

This loader is designed to be used as a way to load data into LlamaIndex.

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_pathway-0.3.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_readers_pathway-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_pathway-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1f8e1546e8cfd36004ac2fa0de05e0d93f548a7de626c887fed43c8b845100de
MD5 d9222bf96dbb4991244e6004be5c30e7
BLAKE2b-256 e559b57cdd864a4d1aae12d87f18fbaa05851e6730edeb9cdad4f82f7ed75682

See more details on using hashes here.

File details

Details for the file llama_index_readers_pathway-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_pathway-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af2eae68fd4aeeef1c9d8a54db2835c38c12bdfa3a9a8d36d4e16d0ed8c9d654
MD5 cecb95d4313b8c1643232fa5d74ff709
BLAKE2b-256 fbf03a04614c75d99379922ad12481695c61582d130f28ea11932f3ac5763414

See more details on using hashes here.

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