business_id
. I can verify that each node in the table has .metadata['business_id']
set to the correct value.metadata['business_id'] == some_value
the filter the top_k
from that set, NOT pull top_
k from all nodes and then return those matching. Make sense? I just need a where clause on my SQL query. πFilteredQueryEngine
that is doingpython all_nodes = self.vector_retriever.retrieve(query_bundle) # Filter nodes by the provided camp_id metadata filtered_nodes = [ node for node in all_nodes if node.node.metadata.get("business_id") == business_id ]
filters = MetadataFilters( filters=[ExactMatchFilter(key="file_name", value="uber_2021.pdf")] )
data_
to pgvectorstore table names?