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
Built Distribution
File details
Details for the file llama_index_readers_pathway-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_pathway-0.3.0.tar.gz
- Upload date:
- Size: 3.1 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 | 1f8e1546e8cfd36004ac2fa0de05e0d93f548a7de626c887fed43c8b845100de |
|
MD5 | d9222bf96dbb4991244e6004be5c30e7 |
|
BLAKE2b-256 | e559b57cdd864a4d1aae12d87f18fbaa05851e6730edeb9cdad4f82f7ed75682 |
File details
Details for the file llama_index_readers_pathway-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_pathway-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.5 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 | af2eae68fd4aeeef1c9d8a54db2835c38c12bdfa3a9a8d36d4e16d0ed8c9d654 |
|
MD5 | cecb95d4313b8c1643232fa5d74ff709 |
|
BLAKE2b-256 | fbf03a04614c75d99379922ad12481695c61582d130f28ea11932f3ac5763414 |