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.4.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_pathway-0.4.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_pathway-0.4.0.tar.gz
Algorithm Hash digest
SHA256 758c0382161f4330d14db9a8a4a5eac4ee7f2ab170a012513b813b580e10bc4d
MD5 79cefc13b9a7680b87b7516a66a7c731
BLAKE2b-256 1463f48381d1ae3a3ad55eedd8cfe389dc71972f69ae68ac6f68f6dea058f503

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_pathway-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95b0898d9083a77b19e3c42d1529f4b5f37f8711e7674ee733ee21358107dd91
MD5 bfd81ce2221a41bb413a99cd229b790e
BLAKE2b-256 7c91fbfddee9091a8fea85180f700f3b68b8b84db2be0c4d5d1cf65309cdbf31

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