how can i do a metadata filter in asimilarity_search() from AsyncPGVectorStore class? #31738
Unanswered
LucasdfRocha
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
Hi! I'm working on building an asynchronous retrieval function using AsyncPGVectorStore that fetches the top 4 most relevant chunks from my PostgreSQL vector store. I need to filter results based on the metadata field
foo_id
.Here’s an example of the metadata stored in my documents:
I encountered the following error:
Is there a supported way to filter documents by a specific metadata key, like foo_id, using
AsyncPGVectorStore
? If so, what is the correct filter syntax?Any guidance would be greatly appreciated!
Thanks in advance!
System Info
plataform: mac
python version: Python 3.10.16
Beta Was this translation helpful? Give feedback.
All reactions