Index: embed chunks and keep a keyword index too; store metadata for filters (team, date, permissions).
Retrieve with hybrid search and rerank, then optionally let an LLM summarize the top results with citations.
Query understanding: rewrite or expand queries and detect filters ("last quarter", "from legal").
Enforce document-level permissions at query time.
Quality: build a labeled query-document set, measure recall@k, NDCG and click-through, and log zero-result queries.
Scale: an approximate nearest-neighbor index (HNSW or IVF), sharding by tenant or size, and caching popular queries.
Loading…