Store an access-control list (ACL) or tenant ID with every chunk at ingestion time.
Enforce permissions at retrieval: pass the user's groups as a metadata filter to both vector and keyword search; never filter after generation.
Keep multi-turn memory short: summarize older turns and rewrite follow-ups into standalone queries.
Show uncertainty: return citations, and refuse or escalate when top retrieval scores fall below a threshold.
Block unsupported claims with a faithfulness check (a second LLM call or NLI model comparing the answer with the retrieved chunks) before returning.
Audit: log user, query, chunk IDs and answer so access issues can be traced.
Loading…