Find answers from the community

Updated last year

Logan M Under PGVector can we use the

@Logan M Under PGVector can we use the Select method to query a subset of the table? Challenge is that the db guys want to make just 1 table for different knowledge bases, and use Views to differentiate them. so my app needs make further query after loading the the PGVectorStore ojbect

https://gpt-index.readthedocs.io/en/stable/api_reference/storage/vector_store.html#llama_index.vector_stores.PGVectorStore.Select
L
1 comment
You cant use select directly

But you can use filters to to filter by various metadata

Might make sense to look at the source code here
https://github.com/jerryjliu/llama_index/blob/54130fc9b499905c84d7e6265314e3bb938dabf7/llama_index/vector_stores/postgres.py#L496
Add a reply
Sign up and join the conversation on Discord