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.2.0.tar.gz (3.2 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