Pathway
PathwayReader #
Bases: BaseReader
Pathway reader.
Retrieve documents from Pathway data indexing pipeline.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
host
|
str
|
The URI where Pathway is currently hosted. |
None
|
port
|
str | int
|
The port number on which Pathway is listening. |
None
|
See Also
llamaindex.retriever.pathway.PathwayRetriever and, llamaindex.retriever.pathway.PathwayVectorServer
Source code in llama-index-integrations/readers/llama-index-readers-pathway/llama_index/readers/pathway/base.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
|
load_data #
load_data(query_text: str, k: Optional[int] = 4, metadata_filter: Optional[str] = None) -> List[Document]
Load data from Pathway.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query_text
|
str
|
The text to get the closest neighbors of. |
required |
k
|
int
|
Number of results to return. |
4
|
metadata_filter
|
str
|
Filter to be applied. |
None
|
Returns:
Type | Description |
---|---|
List[Document]
|
List[Document]: A list of documents. |
Source code in llama-index-integrations/readers/llama-index-readers-pathway/llama_index/readers/pathway/base.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
|