Find answers from the community

Updated 10 months ago

Namespace

What's the recommended way to separate different "namespaces" with PGVectorStore. In PineCone we used different indexes for different documents to limit the replies to a particular document/scope. I was wondering what the equivalent would in PGVectoreStore. Do you recommend setting up a new table for each "context"/"namespace"?
L
k
3 comments
New namespaces/tables can get out of hand a little quickly. It's fine in small numbers, but for larger stuff I would just use metadata filtering to "namespace" the data in a single collection/table
@Logan M I have a question that isn't directly related to this. We had the idea to extract the keywords with the KeywordExtractor during ingestion and then if someone ask for a generic summary (e.g. "Summarize this document for me") we would go into the DB and get all keywords and attach them to the query. (e.g. "Summarize this document for me. Make sure that the summary covers all of the following keywords: [INSERT KEYWORDS]. Is this a good idea, or do you see any better ways to make sure that a request for a generic summary gets good quality results? πŸ™‚ Our idea was that if we fetch top_k 10 results from the vector db with the keywords we would get way better results.
That sounds like a pretty good idea for writing summaries!
Add a reply
Sign up and join the conversation on Discord