Pablan, as it stands

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
This commit is contained in:
ProfessorNova
2026-09-04 08:36:17 +02:00
co-authored by Claude Opus 5
commit 97dbff309c
346 changed files with 43430 additions and 0 deletions
@@ -0,0 +1,42 @@
"""templates are never builtin
Revision ID: 9f4a71c60d38
Revises: 8c31d0a4e7b2
Create Date: 2026-07-20 16:41:03.529117
"""
from typing import Sequence, Union
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision: str = "9f4a71c60d38"
down_revision: Union[str, Sequence[str], None] = "8c31d0a4e7b2"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
"""Upgrade schema."""
# templates/ became a catalog of blueprints that an admin adds from,
# rather than content re-imported over the customer's rows on every
# start. Nothing in this table is read-only any more, so the flag that
# marked it has no meaning left. (documents.is_builtin is untouched —
# the help pages really are the product's own.)
op.drop_column("templates", "is_builtin")
def downgrade() -> None:
"""Downgrade schema."""
op.add_column(
"templates",
sa.Column(
"is_builtin",
sa.Boolean(),
server_default=sa.false(),
nullable=False,
),
)