----------------------
To display the filters extracted while using
VectorIndexAutoRetriever
, you can use the
get_content
method with the
metadata_mode
parameter set to
"all"
. This will return the content of the node along with all the metadata, which includes the filters used.
Here is an example of how to do this:
for node in nodes:
print(node.get_content(metadata_mode="all"))
In this example,
nodes
is the result of a retrieval operation. Each
node
in
nodes
represents a piece of content retrieved from the vector store, and its associated metadata (which includes the filters).
Please note that the actual filters used in the retrieval operation are determined by the LLM (Language Model) based on the query and the
VectorStoreInfo
provided when creating the
VectorIndexAutoRetriever
.
For more details, you can refer to the following sources:
- Auto Retriever (with Pinecone + Arize Phoenix) ()
- Auto-Retrieval from a Vector Database ()
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------