Closes #10 ## Summary - Remove force-pins on `langgraph==1.0.4` / `langgraph-checkpoint==3.0.1` / `langgraph-prebuilt==1.0.5` / `langgraph-sdk==0.2.14` - Upgrade langchain stack so current langgraph-checkpoint (4.x) works with `Reviver(allowed_objects=...)` - Keep direct `langgraph>=1.2.5,<1.3.0` (matches langchain 1.3.x); checkpoint/prebuilt/sdk resolve transitively - Adapt `BaseMessage.text()` → `.text` property for langchain-core 1.5.x ## Resolved versions (uv.lock) | Package | Before | After | |---|---|---| | langchain-core | 1.1.1 | 1.5.1 | | langchain | 1.1.2 | 1.3.14 | | langgraph | 1.0.4 | 1.2.9 | | langgraph-checkpoint | 3.0.1 | 4.1.1 | | langgraph-prebuilt | 1.0.5 | 1.1.0 | | langgraph-sdk | 0.2.14 | 0.4.2 | ## Test plan - [x] `uv sync --frozen` - [x] `uv run python manage.py test` — 248 OK (6 skipped) - [x] Import `consumers_graph` CompiledStateGraph OK - [x] Confirm `Reviver.__init__` accepts `allowed_objects` - [ ] Manual smoke: WebSocket chat + graph path (`consumers_graph`) ## References - Issue: #10 - Prior pin: #9Reviewed-on: #14
Reviewed-on: #9
## Summary Implements [chat_backend#6](#6) Part A: - **uv** packaging (`pyproject.toml` + `uv.lock`), Docker/compose (dev + prod), entrypoint/validate-env, Gitea unit-test + auto-deploy workflows (mirror `scha`) - Env-driven Django settings (`DJANGO_*`, `DATABASE_URL`, CSRF/CORS) - **`OLLAMA_BASE_URL`** wired through all Ollama/LangChain clients (prod → `http://10.0.0.128:11434`) - **DatabaseStorage** — prompt/document file blobs in Postgres (`StoredFile`), not container FS; RAG materializes temp paths for loaders - ASGI via `gunicorn` + `UvicornWorker` (HTTP + WebSockets) Companion server-infra PR registers `app_catalog` / `host_apps` (port **8003**). ## Test plan - [ ] `uv sync && cd llm_be && SKIP_RAG_INIT=1 uv run python manage.py test` - [ ] `docker compose build && docker compose up` against bundled Postgres - [ ] Confirm Ollama calls use `OLLAMA_BASE_URL` (not hardcoded localhost) - [ ] Upload a document / prompt file → row in `chat_backend_storedfile`, no disk under `media/` - [ ] After server-infra merge + secret/Postgres/NPM: deploy via `deploy.sh --app chat_backend --env prod`Reviewed-on: #7