Skip to content

feat(eval): --background-enrichment for the agentic QA path - #121

Merged
njfio merged 1 commit into
mainfrom
feat/eval-background-enrichment
Jul 23, 2026
Merged

njfio merged 1 commit into
mainfrom
feat/eval-background-enrichment

Conversation

@njfio

@njfio njfio commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Wires the async write-path enrichment (#117) into the agentic eval so a bounded write-side experiment can enrich at the LLM backend's full serving concurrency instead of serially.

What

  • --background-enrichment flag → the agentic-QA memory config uses EnrichmentMode::Background (+ enable_knowledge_graph). Ingest only enqueues (instant); a background worker enriches concurrently off the critical path.
  • The agentic loop calls memory.wait_for_enrichment() after each conversation's ingest, before querying, so retrieval reflects the completed enrichment (distilled facts, marked supersessions).
  • Composes with --exclude-superseded / --distill. Flag test added; both feature configs build.

Why

This is the eval side of the async-enrichment work: with a concurrent-capable LLM backend, per-turn extraction/resolution that was serial (~hours) runs 8-way concurrent (~minutes). Verified end-to-end plumbing (background worker enriching 8-way against a concurrent backend, no hang).

Note

The write-side capability A/B this enables (does dropping frontier-detected supersessions help a weak answerer) was not run to completion: the OpenAI/ChatGPT OAuth account hit its usage limit (usage_limit_reached, plan prolite, resets in ~5 days) mid-experiment, which blocks both the frontier reasoner and the codex judge. The wiring + plumbing are validated; the A/B is a single run once quota resets or on a backend with headroom.

🤖 Generated with Claude Code

Runs write-path enrichment in Background mode (instant ingest + concurrent
off-critical-path enrichment) and waits for the queue to drain before
querying, so a bounded write-side experiment can enrich at the LLM backend's
full serving concurrency instead of serially. Composes with --exclude-superseded
/ --distill. Sets enrichment_mode=Background + enable_knowledge_graph; the
agentic loop calls wait_for_enrichment after ingest. Flag test added.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@njfio
njfio merged commit 09f9198 into main Jul 23, 2026
16 of 22 checks passed
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