← All questions
System DesignMedium· Retrieval· Multi-tenancy· Intent

Two teams search one index with the same query strings...

Building separate indexes or fine-tuning per-team rerankers doubles ongoing costs and fails to generalize to future teams. A more robust approach is to incorporate the intent into the scorer. If the document type is known, use a metadata filter; otherwise, concatenate an instruction to the reranker input, which is a low-cost, scalable solution.

Code playground (Python)