Self-hosted knowledge management for SMEs: a split-screen Markdown editor whose sections an LLM refines while you write, and RAG question answering over the documents that result. FastAPI + Postgres/pgvector on the back, SvelteKit on the front, everything OpenAI-compatible and self-hostable. Squashed into a single commit; the development history stays local. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CA43ZJda8Rbp2hKXNy8f6b
19 lines
391 B
Python
19 lines
391 B
Python
"""Mode registration — also the EE extension point (the insights mode
|
|
registers itself from ee/backend via ee_hooks)."""
|
|
|
|
from app.modes.base import Mode
|
|
|
|
_MODES: dict[str, Mode] = {}
|
|
|
|
|
|
def register_mode(mode: Mode) -> None:
|
|
_MODES[mode.name] = mode
|
|
|
|
|
|
def get_mode(name: str) -> Mode | None:
|
|
return _MODES.get(name)
|
|
|
|
|
|
def registered_modes() -> list[str]:
|
|
return sorted(_MODES)
|