unsloth/studio/backend/core/rag
Roland Tannous 005234c953 Studio: route RAG parent-process loggers through structlog
core/rag/db.py, vector_store.py, tool.py, bm25.py, and reranker.py
all run only in the FastAPI parent process. Switch their loggers
from Python stdlib to studio's structlog get_logger so their output
shows up in the same JSON stream as the rest of the backend (the
request_completed / RAG search lines).

embeddings.py and ingestion.py stay on stdlib because they execute
inside the mp.spawn ingestion subprocess, which doesn't inherit the
parent's structlog configuration.
2026-05-25 15:25:11 +04:00
..
parsers [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-05-25 06:39:01 +00:00
__init__.py Studio: add RAG with hybrid search, reranker, chat integration 2026-05-23 18:46:15 +04:00
bm25.py Studio: route RAG parent-process loggers through structlog 2026-05-25 15:25:11 +04:00
chunking.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-05-25 06:39:01 +00:00
db.py Studio: route RAG parent-process loggers through structlog 2026-05-25 15:25:11 +04:00
embeddings.py Studio: swap RAG vector store from Qdrant to sqlite-vec 2026-05-25 15:13:59 +04:00
ingestion.py Studio: swap RAG vector store from Qdrant to sqlite-vec 2026-05-25 15:13:59 +04:00
reranker.py Studio: route RAG parent-process loggers through structlog 2026-05-25 15:25:11 +04:00
retrieval.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-05-25 06:39:01 +00:00
tool.py Studio: route RAG parent-process loggers through structlog 2026-05-25 15:25:11 +04:00
vector_store.py Studio: route RAG parent-process loggers through structlog 2026-05-25 15:25:11 +04:00