unsloth/studio/backend/core/rag
Roland Tannous 290201f62e Studio: trim captioner logs to invoked+complete, render subprocess logs as JSON
Two changes to the RAG captioning log output:

  - Drop the noisy per-image and path-selection info lines
    (using-chat-VLM, loading-helper, per-image done). Only the
    'caption_images: invoked' and 'caption_images: complete' lines
    remain; warnings for genuine failures (helper load, per-image
    request, helper unload) are kept.
  - Configure structlog at the top of the ingestion subprocess worker
    with the same env the parent uses. The worker runs in a spawned
    process where structlog was never set up, so its logs fell back to
    structlog's dev ConsoleRenderer ([info] ...) instead of the JSON
    renderer the rest of the app uses. Now captioner/parser logs from
    the subprocess match the parent's JSON format.
2026-05-28 13:39:44 +04:00
..
parsers [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-05-28 07:50:36 +00:00
__init__.py Studio: add RAG with hybrid search, reranker, chat integration 2026-05-23 18:46:15 +04:00
authorization.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-05-28 07:50:36 +00:00
bm25.py Studio: trim verbose comments/docstrings across RAG code 2026-05-26 13:51:11 +04:00
captioner.py Studio: trim captioner logs to invoked+complete, render subprocess logs as JSON 2026-05-28 13:39:44 +04:00
chunking.py Studio: WIP — RAG preview UI, locator/auth refactor, tests, fixtures (pre-merge snapshot) 2026-05-28 00:13:43 +03:00
db.py Studio: trim verbose comments/docstrings across RAG code 2026-05-26 13:51:11 +04:00
embeddings.py Studio: pass BytesIO (not PIL Image) to BGE-VL encode so model.data_process can re-open 2026-05-27 05:44:40 +04:00
ingestion.py Studio: trim captioner logs to invoked+complete, render subprocess logs as JSON 2026-05-28 13:39:44 +04:00
locators.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-05-28 07:50:36 +00:00
reranker.py Studio: fix RAG reranker deadlock on first load (Lock -> RLock) 2026-05-27 21:10:38 +04:00
retrieval.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-05-28 07:50:36 +00:00
scope.py Studio: text-mode default with VLM-captioned figure splicing; helper VLM fallback 2026-05-27 11:16:56 +04:00
tool.py Studio: WIP — RAG preview UI, locator/auth refactor, tests, fixtures (pre-merge snapshot) 2026-05-28 00:13:43 +03:00
vector_store.py Studio: WIP — RAG preview UI, locator/auth refactor, tests, fixtures (pre-merge snapshot) 2026-05-28 00:13:43 +03:00