Using namespace or query filtering

I have been building a production-ready application with Rag. the data is in two categories. primary data and secondary data. for each question from the user, we have to show the primary data and secondary data related to that. For better latency, which approach is better ??

1 - use one index, but 2 namespace.
2 - use 2 indexes for 2 categories
3 - use 1 index and 1 namespace, add a metadata type, set “primary” and “secondary” over there, and use metadata filtering.

Hi @user.hisham123. It might be worth considering using one namespace per user with metadata used to distinguish between records with primary vs. secondary data. Here’s the doc on implementing multi-tenancy, in case it helps. It might also be worth considering performing queries in parallel.