Per-section relevant context retrieval (RAG) #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rag-context-retrieval"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
mxbai-embed-large, cloud fallback e.g. Gemini), instead of the full concatenated context-files blob prepended to every request.internal/retrievalpackage: heading-based chunking, an OpenAI-compatible embeddings client, and aRetrieverwith a fallback chain, cosine-similarity ranking, and per-slot embedding cache.[embeddings]config table — entirely opt-in. Unconfigured (the default), behavior is byte-identical to before this branch.docs/superpowers/specs/2026-08-02-rag-context-retrieval-design.md(reviewed via a 4-model salyut consult before finalizing). Implementation plan:docs/superpowers/plans/2026-08-02-rag-context-retrieval.md.ContextPaths/ContextPromptdivergence, missing diagnostics) — fixed in one pass, re-reviewed clean. That re-review then caught a genuine TUI-corrupting side effect in the diagnostics logging itself (stderr write during the Bubble Tea alt-screen render) — fixed and re-reviewed clean.Test plan
go build ./... && go vet ./...cleango test ./...— 319/319 passinggo test -race ./internal/retrieval/... ./internal/tui/...— no racesmake license-checkcleanhttp://192.168.1.231:11435/v1/embeddings,mxbai-embed-largeon a GTX 750 Ti) is real and reachableredakt newagainst a post with 2+ context files with[embeddings]uncommented inredakt.toml, confirm candidates generate and retrieved-context framing looks sane🤖 Generated with Claude Code