Find answers from the community

Updated 3 weeks ago

Error

im trying to use the auto retriever which works fine for metadatafields that are of a single value e.g str

but when i have a list of tags or categories as a metadata field is fails to correctly apply the in filter. i cant find any data in the docs about supported auto retreiver fields.

heres an example:

vector_store_info = VectorStoreInfo( content_info="support articles for a software platform", metadata_info=[ MetadataInfo( name="categories", type="List", description=( "array of topics covered in the article, options ['Getting Started', 'Exporting Data from QuickBooks', 'Getting Started with Accounting', 'System Requirements']" ), ), ], ) nodes = retriever.retrieve('What are the system requirements') 2025-01-06 20:35:37,565 - INFO - Using query str: What are the system requirements 2025-01-06 20:35:37,565 - INFO - Using filters: [('categories', 'in', 'System Requirements')] 2025-01-06 20:35:37,565 - INFO - Using top_k: 2 TypeError: 'in <string>' requires string as left operand, not list
L
r
4 comments
Is there a more full traceback? What vector store are you using?
and no it just seems to be generating the list filter incorectly
i assume i can fix it with prompting but i was curious if anyone else had experience with this
Add a reply
Sign up and join the conversation on Discord