PathwayReader#
- class llama_index.readers.PathwayReader(host: str, port: Union[str, int])#
Bases:
BaseReader
Pathway reader.
Retrieve documents from Pathway data indexing pipeline.
- Parameters
host (str) – The URI where Pathway is currently hosted.
port (str | int) – The port number on which Pathway is listening.
See also
llamaindex.retriever.pathway.PathwayRetriever and, llamaindex.retriever.pathway.PathwayVectorServer
Methods Summary
load_data
(query_text[, k, metadata_filter])Load data from Pathway.
Methods Documentation
- load_data(query_text: str, k: Optional[int] = 4, metadata_filter: Optional[str] = None) List[Document] #
Load data from Pathway.
- Parameters
query_text (str) – The text to get the closest neighbors of.
k (int) – Number of results to return.
metadata_filter (str) – Filter to be applied.
- Returns
A list of documents.
- Return type
List[Document]