Skip to content

wip(ask): RAG ranking and adaptive context budget redesign (unvalidated) - #620

Draft
jmagar wants to merge 2 commits into
mainfrom
codex/ask-rag-hardening-20260916
Draft

jmagar wants to merge 2 commits into
mainfrom
codex/ask-rag-hardening-20260916

Conversation

@jmagar

@jmagar jmagar commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Draft only. Do not merge. This branch keeps a RAG redesign from a worktree that was abandoned. It does not compile: axon-services has 2 errors. It has not been tested.

Contents

  • A lexical and authority reranker (ranking.rs, query_tokens.rs).
  • Context budgets that change with the model tier.
  • Fixes that can be split out into their own PRs:
    • synthesis_high_context is config that nothing on main reads.
    • ask_hybrid_candidates is never passed to the Qdrant search.
    • doctor does not check the openai-compat config.

The context admission and explain scoring parts were already moved to #619.

Known conflicts

crates/axon-llm/src/runtime/doctor_probe.rs conflicts with #617, which is already on main.

🤖 Generated with Claude Code

jmagar and others added 2 commits September 17, 2026 01:07
…t merge)

Preserved from an abandoned worktree on 2026-09-17. Does not compile (2 errors in axon-services) and is untested
in this state. Contains a lexical/authority reranker (ranking.rs,
query_tokens.rs), model-tier adaptive context budgets, and several
extractable fixes: synthesis_high_context is dead config on main,
ask_hybrid_candidates is never passed to Qdrant search, and doctor does not
validate openai-compat config. The context-admission and explain-scoring
parts were landed separately.
Keeps both doctor_probe changes (per-backend config validation and #617's
OpenAI-compatible probe ceiling). The ask_retrieval redesign files keep this
branch's versions; the admission fix from #619 must be re-applied when the
redesign is finished.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant