Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Run and debug Chatbox session attachment RAG model evaluation with synthetic and real long-file fixtures.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -10% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -23% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -37% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -6% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 103% | 0% |
Use this skill when validating file question-answering behavior for large chat attachments.
Verify both sides of model behavior:
query_session_attachment when the answer depends on an uploaded large file.Prefer the Chatbox conversation-flow harness for product validation because it exercises the real renderer, config, license, local API, file upload, indexing, tool registration, and persisted messages.
Default fixture repo:
bash../../chatbox-session-rag-eval-fixtures
Fixture types:
Regenerate fixtures in the fixture repo:
bashnode scripts/generate-fixtures.mjs node scripts/fetch-real-fixtures.mjs
Start the local API before running the harness. Then build with USE_LOCAL_API=true; the renderer API origin is compiled into the bundle.
bashUSE_LOCAL_API=true node ./node_modules/electron-vite/bin/electron-vite.js build --mode development pnpm eval:session-rag:chatbox -- --case long-citrine-threshold --keep-user-data
The harness copies the real config.json into an isolated temporary userDataDir, injects a temporary default chat model if missing, and stores the session RAG sqlite DB at a separate temporary path.
session_attachment_embedding capability is false or unavailable for theactive local API/license path.
USE_LOCAL_API=true.file must have sessionAttachmentIndexStatus: "ready" before context building.
user message.
bashpnpm eval:session-rag:chatbox -- --case long-citrine-threshold pnpm eval:session-rag:chatbox -- --case implicit-citrine-current-policy pnpm eval:session-rag:chatbox -- --case real-wiki-apollo-implicit-landing-site pnpm eval:session-rag:chatbox -- --case multi-turn-real-wiki-apollo-followup pnpm eval:session-rag:chatbox -- --case unrelated-simple-math pnpm eval:session-rag:chatbox -- --case real-wiki-unrelated-capital
For fast model-behavior iteration without Electron:
bashpnpm eval:session-rag -- --dry-run pnpm eval:session-rag -- --case implicit-citrine-current-policy
Other measured skills in the registry, with their headline benchmark lift.