Files
DeepTutor/deeptutor/services/rag/__init__.py
Bingxi Zhao (Frank) 100576da69 release: v1.1.2 — schema-driven channels, secret masking, RAG simplification, KB-consistency hardening
* TutorBot Channels tab is now schema-driven across every built-in & plugin channel
  (GET /api/v1/tutorbot/channels/schema), with per-field secret reveal toggles.
* Channel secrets are masked end-to-end; raw values only surface via the explicit
  ?include_secrets=true edit-form route. PATCH validates ChannelsConfig at the API
  boundary and returns 422 on bad payloads. reload_channels is serialised by an
  asyncio.Lock and records last_reload_error for the UI.
* Collapsed services/rag/ to a single LlamaIndex pipeline: removed ~2.6k lines of
  unused components/* + pipeline.py + types.py + utils/ + parsers/. rag_provider
  is now a stub; legacy values silently coerce to llamaindex.
* Centralised file routing into services/rag/file_routing.py (FileTypeRouter /
  DocumentType / FileClassification); dropped per-provider extension helpers.
* Defensive RAG/KB consistency: deep_solve / deep_research strip rag/kb when no
  KB is attached; SolveToolRuntime + ResearchPipeline + DecomposeAgent
  short-circuit instead of falling back to non-existent default KBs (DE-all,
  ai_textbook).
* Externalised AgenticChatPipeline prompts into agentic_chat.yaml (zh + en).
* Added Thai README (#337).
* New test modules: file_routing, knowledge_base_config, channel_schema,
  channel_secrets, rag_consistency, research_pipeline_rag.

Full notes: assets/releases/ver1-1-2.md

Made-with: Cursor
2026-04-18 11:33:53 +08:00

33 lines
767 B
Python

"""RAG service exports."""
from .factory import (
DEFAULT_PROVIDER,
get_pipeline,
list_pipelines,
normalize_provider_name,
)
from .file_routing import DocumentType, FileClassification, FileTypeRouter
from .service import RAGService
def __getattr__(name: str):
"""Lazy import pipeline implementation classes."""
if name == "LlamaIndexPipeline":
from .pipelines.llamaindex import LlamaIndexPipeline
return LlamaIndexPipeline
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
__all__ = [
"RAGService",
"FileTypeRouter",
"FileClassification",
"DocumentType",
"get_pipeline",
"list_pipelines",
"normalize_provider_name",
"DEFAULT_PROVIDER",
"LlamaIndexPipeline",
]