* feat(core): optionally populate an instance OpenAI provider
* refactor(core): keep OpenAI population configuration in dev settings
* chore(core): remove development population tests
* feat(core): populate OpenAI with a low-cost model
* feat(core): optionally populate an Anthropic provider and model
* fix(dev): forward AI population settings to Docker backend
* docs: explain AI provider populate key files in the dev env examples
---------
Co-authored-by: peter_baserow <peter@baserow.io>
* feat(assistant): stream Kuma background replies over HTTP
Behind assistant_background_runs, commit and enqueue the message then follow
Redis on the existing POST/200 cumulative JSON response. Resume the same run
without sending the prompt again. Keep refresh, multi-tab discovery, onboarding
and durable outcome recovery in the Kuma adapter and UI integration.
Part of #6346
* Remove unused Kuma chat run response header
* Register Kuma with the shared async streaming router
* Always execute Kuma messages in background runs
* Use chat run constant enums in Kuma
Kuma's model_unavailable error code moves to its own run constants,
because the engine no longer defines run type specific codes.
* Move the tool executor into Kuma
Kuma is its only user, and it is specific to pydantic-ai agents, so it does
not belong to the shared chat run engine.
* Return nothing from Kuma's interruption warning hook
The engine now prunes a run whatever the hook does, so it no longer reports
whether the warning was kept.
* Stop patching the removed ChatRunBuffer.finish
* Fix and simplify Kuma's background run adapter
- Save "nothing changed" when the model was unavailable or the prompt
never reached it.
- Keep the progress line after a reconnect and build the compatibility
records from their models, with the right text for runs that did nothing.
- Delete the in-request path, its cache-key Stop and the event bus.
- Map a second message to 409 directly and return one run shape in the
chat API.
- Fix docstrings, help texts and the POST schema; drop overlapping tests and
share run test helpers.
* Fix and simplify Kuma's run follower in the browser
- Keep local-only messages on refresh and show a queued run as queued.
- Settle a request aborted before it is sent and never show raw error pages.
- Fall back to the API for a new view whose broadcast is late.
- Stop a run through the engine.
- Delete the reader for the previous backend, the old cancel call and the
UI location history.
- Share run test helpers and drop overlapping tests.
* Tighten Kuma's e2e tests, CI setup and docs
- Prove a live resume after a reload and drop a test that proved nothing new.
- Keep Kuma's panel closed in every browser context through the storage state.
- Drop the unused OpenAI key from the e2e setup.
- Rewrite the background replies section of the AI assistant docs.
* Handle Kuma runs whose sender lost access, and other review fixes
- A queued run whose sender can no longer use Kuma ends as access_lost
without calling the model.
- A chat keeps asking runs for a title while its title is provisional.
- Test that a run captures and saves its onboarding target.
- Pass Phoenix settings to the dev export worker; pin CI's Kuma stub to
Node 24.22.1.
* Fix Kuma's browser edge cases found in the re-review
- A send whose stream is refused after its run started re-reads the
chat and counts as accepted.
- A chat read that ends after another chat was chosen is dropped, and
only a 4xx forgets the tab's stored chat.
- An unsaved outcome stays shown while its run is the chat's latest.
- The status line shows that Kuma is answering.
- Empty stopped or failed answers show only their outcome.
- Logout clears Kuma's chats, messages and pending navigation.
* feat(assistant): follow Kuma replies through shared chat runs
* refactor(assistant): remove obsolete stream-limit recovery
* fix(assistant): simplify Kuma cutover and preserve legacy Stop
* fix(assistant): preserve existing Kuma API contracts
* refactor(assistant): match stream event kinds
* refactor(assistant): simplify execution and navigation
* fix(assistant): show that Kuma is cancelling after Stop
* test(assistant): cover the stale refresh guard and trashed workspaces
* refactor(assistant): close the run follower and drop the unused baseline
* refactor(chat-runs): share the run-in-progress error code
* docs(assistant): document the run limit and the deprecated chat status
* fix(assistant): give a duplicated tab its own Kuma tab id
* chore(embeddings): replace transformers with tokenizers and drop pip from the image
* chore(embeddings): fix the dev health check and docs, add a changelog entry
* chore(embeddings): port the dependency and threading updates from #6379
Brings over the changes from #6379 that this branch didn't have yet:
- onnxruntime 1.26.0, tokenizers 0.23.3, starlette 1.8.0 and uvicorn 0.54.0,
plus huggingface_hub 2.2.0 and transformers 5.19.0 in the build stage.
- The model download is pinned to its current revision.
- Inference uses as many threads as the container's CPU limit, which
EMBEDDINGS_NUM_THREADS overrides.
- Inference runs in a worker thread behind a lock, so /health answers during
long batches.
- An empty texts list returns 400 instead of 500.
- Helm, its README, Cloudron and the README point to baserow/embeddings:1.1.0.
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
* chore(embeddings): address review feedback
- The build stage writes tokenizer.json with the 512-token truncation and
per-batch padding, so app.py only loads it. The build stage uses the
tokenizers library for this and no longer installs transformers.
- tokenizers is installed with --no-deps. Its only dependency,
huggingface-hub, is used by from_pretrained, which the app never calls.
- The README's local run installs the image's packages, downloads the model
with _download_model.py into EMBEDDINGS_MODEL_DIR (default /model), and
its snippet posts texts instead of text.
* chore(embeddings): fix the issues found while verifying the image
- requirements.txt pins all 13 runtime packages and is installed with
--no-deps, so rebuilds are reproducible. The builder no longer installs
git, and the build fails if the app can't be imported.
- Requests are processed 8 texts at a time and limited to 256 texts and a
1 MiB body, so a single request can't OOM-kill the container anymore.
- Inference holds a lock in its worker thread, and a queued request whose
client has gone is skipped.
- Malformed input, including lone surrogates, returns 400 instead of 500.
- The app refuses to start with a tokenizer.json that doesn't truncate at
512 tokens, or with EMBEDDINGS_NUM_THREADS below 1.
- _download_model.py can be re-run.
- The README, docs, Cloudron manifest and changelog match the code, and the
Cloudron manifest gets a 1.5 GiB memory limit and the /health check.
* chore(embeddings): correct the response size per text in a comment
---------
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
Python 3.14.7, Node.js 24.21.0, Go 1.27 (mox builder), and the dev-only
Keycloak, OTel collector and Phoenix images. Caddy 2.11.4 is already the
latest release.
* feat: add Phoenix LLM tracing service to the dev stack (ai profile)
* chore(deps): add openinference pydantic-ai instrumentation (dev)
* feat: export assistant traces to Phoenix when BASEROW_ASSISTANT_PHOENIX_URL is set
* fix: harden Phoenix tracing setup after review
* feat: Phoenix postgres storage, ai-evals profile and auth support
* docs: ADR 007 and assistant tracing/evals guides
* feat: assistant eval platform core (types, registries, scenarios)
* feat: eval harness with shared assistant factory
* feat: phoenix dataset sync for assistant evals
* feat: assistant eval experiments via phoenix client + CLI
* feat: migrate core, database and docs evals to the platform
Ports the 42 kuma-core/kuma-database/kuma-docs pytest evals into
declarative EvalCase/EvalScenario registrations, plus structure-level
tests asserting dataset counts, ids, and scenario wiring.
* feat: migrate builder and automation evals to the platform
Ports the 12 builder + 2 proactive + 2 user-source cases into
evals/datasets/builder.py (kuma-builder, 16 cases) and the 7 automation
cases into evals/datasets/automation.py (kuma-automation), following the
Task 5 pattern established in core.py/database.py. Extends
eval_platform/test_datasets.py with counts, id lists, a mode-per-case
assertion, and pre_state snapshot checks for the two cases that need one.
* fix: link traces and final counts for single-case eval runs
* fix: root spans for single-case eval runs use the assistant tracer provider
* feat: assistant eval runner service with run page
Adds the assistant_eval_runner management command (migrate -> instrumentation
-> dataset sync -> single worker thread -> wsgiref server) and its
runner.py module: a stdlib WSGI app serving a plain server-rendered page
(GET /, POST /run, GET /healthz) backed by a bounded in-memory run history
and one background worker draining a queue.Queue via run.run_experiment_for.
Wires the assistant-eval-runner compose service (ai-evals profile, own
baserow_evals DB), renames phoenix-db-init to ai-evals-db-init and extends
it to also create baserow_evals, and adds BASEROW_EVAL_RUNNER_PORT to both
env example files and the dev docs.
* fix: eval runner integration fixes
assistant-eval-runner needs its own SECRET_KEY/DATABASE_*/REDIS_* env vars:
dev-overlay compose services don't inherit docker-compose.yml's
x-backend-variables anchor (that's file-scoped YAML), so the container was
starting without a Django SECRET_KEY and without a Redis password, crashing
on auth. Also links to finished experiments pointed at the container-internal
BASEROW_ASSISTANT_PHOENIX_URL (http://phoenix:6006), unreachable from the
developer's browser.
Adds BASEROW_ASSISTANT_PHOENIX_PUBLIC_URL (defaulting to
http://localhost:${BASEROW_PHOENIX_PORT:-6060}) and has runner.py build the
Phoenix link from it, deep-linking straight to the finished run's experiment
compare view when its dataset_id/experiment_id are known, falling back to
the datasets list otherwise.
* refactor: retire the pytest eval harness
All 65 eval cases now live in baserow_enterprise.assistant.evals.datasets;
delete the legacy pytest-based suite and its `eval` markers.
* docs: rewrite assistant evals guide for the Phoenix platform
* feat: docs judge, prompt sync, git stamping and UI-contributed eval examples
- answer_quality LLM-as-judge evaluator for kuma-docs (BASEROW_EVAL_JUDGE_MODEL)
- Kuma prompts versioned into Phoenix on sync; experiments stamped with
prompt hashes, git branch/commit and judge model
- sync preserves UI-added dataset examples with prompt-match adoption;
eval-export emits paste-ready docs.py snippets
- final-review fixes: skip-safe scoring, runner CSRF/bind hardening,
doc corrections
* feat: eval runner UI round — tabs, fan-out, reference answers, 64-case docs dataset
- Runner page: dataset tabs with selection badges, per-dataset and global
all/none, cross-dataset fan-out (one experiment per dataset), 5s
auto-refresh of runs, persistent run history across restarts, per-dataset
Phoenix links, in-page Help tab rendering the repo docs via /docs.json.
- Reference answers for kuma-docs: EvalCase.reference_answer, judge grades
against it, sync preserves UI-curated ones, eval-export round-trips them.
- kuma-docs grown to 64 cases: reference answers for all, PostHog-mined
frequent questions, and cannot-do guardrail cases.
- Gemini (google:gemini-3.6-flash) in the eval model list.
* feat: runnable UI examples, prompt overrides, eval baseline and results view
- UI-added Phoenix examples now execute: docs questions get the standard
docs checks + judge; tool cases declare scenario/expected_tools/
answer_contains in metadata (empty-workspace default scenario). They are
tickable per dataset on the runner page and run in whole-dataset
experiments too.
- Prompt overrides: run any experiment with a prompt's latest Phoenix
version instead of the code constant (runner checkbox panel with soft
per-tab ordering, or --override-prompt). Agent singletons keep their
dynamic instructions; effective hashes + override list stamped on the
experiment.
- Committed baseline snapshot (evals/baseline.json, 111 cases) with
just b eval-baseline capture/import; the runner imports it on startup so
every Phoenix instance gets a baseline experiment per dataset,
idempotent by content hash and run count.
- Results tab: all datasets in one view for a named experiment, with
baseline deltas and a case-weighted overall row, via Phoenix experiment
annotation summaries.
- New evaluation guide (docs/testing/ai-assistant-eval-analysis.md) served
in the Help tab; layout uses horizontal space better (single tab row,
fluid case columns).
* feat: time and cost in eval results, frozen into the baseline snapshot
- Results tab gains time (sum of run latencies) and cost/token columns per
dataset and summed overall, with lower-is-better baseline deltas.
- eval-baseline capture freezes each dataset's time/cost/token totals into
baseline.json; import stamps them as metadata so imported baselines
(which carry no traces to price) still show time and cost.
- Importing a new baseline supersedes the previously imported one instead
of accumulating duplicates.
- Changelog entry for the eval platform.
* fix: OpenInference attributes on subset-run task root spans
Bare wrapper spans rendered as kind 'unknown' with Unset status and empty
input/output in Phoenix. The Task root span now carries the CHAIN kind, the
case prompt as input, the run result as JSON output, and an explicit OK
status.
* polish; minor fixes
* fix: address eval platform review feedback
Apply production model settings and retries, isolate automation checks, and fix runner configuration, links, and result status.
Defer GPT-5.6 compatibility and baseline comparisons to #6034.
* fix: preserve model profiles in rebased eval harness
Use an explicit model profile for evals and share concrete models with tools. Manage model clients through the existing lifecycle helper and preserve regression coverage from the retired harness.
* fix: harden eval persistence and Phoenix access
* fix nuxt.test.config for saas
* add .nuxtrc
* Enhance Nuxt configuration to ignore sourcemaps from node_modules
* Add nuxt-prepare command to docker-entrypoint.sh for generating .nuxt directory
* Refactor license.vue to use Composition API
* Add korean language support
* Add impersonate middleware to dashboard and workspace pages
* Mount local backend/media folder in docker-compose for Caddy to serve uploaded files during development
* Fix invitation related issues
* Update email configuration for local development with Mailhog integration
* Add moment-guess to optimizeDeps in Nuxt configuration to pre-bundle and avoid missing source map warnings
* Refactor login components to use Composition API and improve routing structure for login pages
* Update sidebar user context to conditionally display workspace creation option based on user permissions
* Centralize locale definitions in a new config file
* please linter
* chore (AI-Assistant): add embeddings to docker-compose.dev.yml; improve installation docs
* Fix flaky test
* Address feedback
* Fix just dev down to stop all services
* create backend justfile; switch to uv
* Add deploy and dc-deploy recipes to build images
* Add uv.lock for reproducible builds
* CI fixes + improvements
* Reduce build time
* improve CI caching
* Improve exit early conditions
* Set requires_python==3.11.*; add backend/media to gitignore
* Fix all-in-one Dockerfiles and some other fixes
* Introduce frontend justfile + some other useful recipes
* Fix permissions issue with dev containers
* Improve dockerfiles and docs on how to use the dev env
* Fix mjml-email-compiler service
* Update docs + address feedback
* Fix containers healthchecks
* Fix yarn test in dev container
* Minor fixes to docs and justfile attach command
* Address Petr's feedback
* Address additional feedback
* Add changelog entry
* Address feedback: Petr and Przemek
* address feedback + prepare for saas PR
* minor fixes
* Address Bram's feedback 2