Skip to content

RAG settings

RAG settings control how many knowledge-base chunks reach the model and how strict relevance matching is. They apply per assistant and take effect on the next visitor message.

  1. Assistants → select assistant → Knowledge basesRAG settings.
  2. Adjust values below.
  3. Save and re-test in the test panel.
SettingDefaultRangeEffect
similarity_threshold0.70.0 – 1.0Minimum vector similarity for a chunk to be included. Higher = stricter, fewer chunks.
max_results101 – 20Maximum chunks sent to the Response Synthesizer.
boost_recentoffon / offWeights newer documents higher when scores are close.
retention_daysplan defaultvariesDrops indexed chunks older than N days from retrieval (does not delete source files).

Query preprocessing and rewrite are handled by smart query understanding on Starter+ plans — not duplicated here.

Too much irrelevant context

  • Raise similarity_threshold to 0.750.85
  • Lower max_results to 58

Answers miss obvious content

  • Lower threshold to 0.60.65
  • Raise max_results toward 1520
  • Improve source documents — see Content best practices

Time-sensitive content (pricing, release notes)

  • Enable boost_recent so the latest uploads rank higher

Chatevo merges dense (semantic) and sparse (keyword) results before applying your threshold. Exact product SKUs and error codes still match via keyword even at a higher threshold.

See Document retrieval architecture.

These settings are per assistant. Knowledge-base-level tuning (shared across assistants using the same KB) lives under Tune search settings.