Text match filter doesn’t work with PostgreSQL filter search and gives unknown operator error.
I have PostgreSQL db with Llamaindex and I am doing filter search over it. Many operators work but text match filter doesnt work. I have newest version of Llamaindex. It gives this error:
Unknown operator: FilterOperator.TEXT_MATCH, fallback to '='
My code:
filters = MetadataFilters(
filters=[
MetadataFilter(key="title",
operator=FilterOperator.TEXT_MATCH,
value="Graph RAG")
]
)
Alternatively:
operator="text_match"
Rest of code is basically like https://docs.llamaindex.ai/en/stable/examples/vector_stores/postgres/
Burny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.