Skip to content

Evidence Lab v1.6.5 — Ready-built images, cloud deployments for AWS, Azure and Google Cloud, and anonymous ratings

Choose a tag to compare

@dividor dividor released this 05 Nov 05:19
· 298 commits to main since this release
dd4816c

[1.6.5] - 2026-11-05

Evidence Lab v1.6.5 is a packaging release. The API, MCP server and document pipeline are now published as one ready-built image for linux/amd64 and linux/arm64, on Docker Hub as astrobagel/evidencelab and mirrored on GitHub as ghcr.io/dividor/evidencelab, so a new install no longer builds the Python image itself. A new compose file runs Evidence Lab from that image and builds only the small web interface locally, and the demo script now starts it in one command. The shipped image is also 2 GB smaller, because the browsers used only by the integration tests now live in a separate test image. Database migrations also run again from a host checkout, which fixes the Demo E2E workflow. It also fixes two ways a search could run the local Jina reranker without a limit, which crashed the evidencelab.ai API by running it out of memory on 2 November, and moves the default reranker to Cohere. Visitors who are not signed in can now rate content, with one rating per item per browser. The web interface can now run behind a cloud load balancer, and tested example deployments arrive for three clouds, each with Terraform, scripts and exact steps: AWS (using Amazon Bedrock, which is new as a model provider), Azure Container Apps and Google Cloud Run. The Google Vertex models move to gemini-3.8-flash, because Google retired the Gemini 2.x models, and the Huggingface models move to Kimi K2, because Hugging Face's providers stopped serving Qwen3 235B. Long Brief sections no longer fail with a 422 error.

Search & Assistant

  • A search no longer goes out before the models are chosen. A search pressed while the page was still loading its model combos was sent with no embedding model and no reranker, so the API used its own defaults, including the local Jina reranker with no limit on how many results it scores. The search button and Enter now wait until the selected combo has been applied. Data sources with no model combos are unaffected (#577)
  • Searches work on plain-HTTP sites. Browsers provide crypto.randomUUID only on HTTPS pages. The anonymous session ID and the chat and Brief activity IDs called it directly, so on a plain-HTTP site every search showed "Search failed" although its results loaded. They now use the existing generateUUID helper (#585)
  • AI text reads correctly when a model replies in blocks. Some providers, Amazon Bedrock among them, return a reply as a list of text blocks rather than one string. The AI summary, chat, highlights, document summaries, tagging, translation and citation checks turned that list into text as it was, so the AI summary showed raw blocks such as [{'type': 'text', ...}]. They now join the text blocks. Replies that are plain strings are unchanged (#585)
  • Chat and Brief search with the selected combo's settings. The research assistant ignored the combo's rerank_model_page_size and its embedding model. On the Huggingface combo it reranked every result with Jina instead of the first 10, two searches at a time, and embedded queries with the API's default model instead of e5. Chat, Brief and the MCP chat tool now send both settings, the same as the Search tab (#579)
  • Long Brief sections no longer fail with 422. The Brief put each section's whole research prompt into the chat question: the outline with a summary of each written section, the brief and section guidance, the voice profile, and for an Update the full current draft. The API caps the question at 5,000 characters, and a saved section draft reaches about 8,000, so these requests failed before any research ran. The browser now sends the prompt's parts in a new brief_section field and the API writes the prompt, with each part keeping the limit it has when stored (200,000 characters for a section draft, 10,000 for a voice profile). The question is now just the section heading, which also labels the Activity row. The Brief's Instructions, section guidance and Edit/Update boxes stop at 2,000 characters, the limit the API enforces (#586)
  • The default reranker is Cohere. application.search.rerank_model, used when a request names no reranker, moves from the local jinaai/jina-reranker-v2-base-multilingual to Cohere-rerank-v4.0-fast on Azure Foundry, and the Huggingface combo's reranker moves to Cohere too. The local model ran inside the API process and could take it past its memory limit (#576, #578)

Ratings

  • Visitors who are not signed in can rate content. A new setting, application.features.anonymous_ratings, shows the rating stars to anonymous visitors on search results, the AI summary, chat answers, the Map and document summaries. It needs USER_MODULE set to on_passive, and it is off when the key is absent. The API gives each anonymous browser a random ID in an httpOnly evidencelab_rater cookie and stores it with the rating, so a browser keeps one rating per item, as a signed-in user does: rating again updates it, and only the same browser can see or remove it. Chat answers can be rated anonymously only while the conversation is open, because anonymous conversations are not saved. With the setting off, the API refuses anonymous ratings with 401; page feedback stays open to everyone as before. Rating submissions are now rate-limited, by RATE_LIMIT_RATINGS (default 30/minute). evidencelab.ai turns the setting on (#581)

Models

  • Amazon Bedrock as a model provider (aws_bedrock). config.json gains Amazon Titan Text Embeddings V2 (aws_titan_v2, 1024 dimensions), Amazon Nova 2 Lite (nova-2-lite, through the US inference profile) and Cohere Rerank 3.5 on Bedrock (cohere-rerank-3.5-bedrock, called in us-west-2), and an AWS Bedrock model combo, which the demo script offers. Evidence Lab calls Bedrock with the standard AWS credentials and AWS_REGION, and a rerank model can name its own region. Nova 2 Lite's price is in the cost table (#585)
  • Google Vertex uses gemini-3.8-flash. Google retired gemini-2.5-flash and gemini-2.5-pro on Vertex AI on 20 October 2026, and gemini-2.0-flash earlier, so the Google Vertex combo's AI summary, highlighting and assistant failed with HTTP 404. config.json replaces the three entries with gemini-3.8-flash, and the combo uses it for all three. Its embedding model (gemini-embedding-001) and reranker (vertex-ai-ranker) are unchanged. Gemini 3 models answered only on the global location in testing, so GOOGLE_CLOUD_LOCATION now defaults to global instead of us-central1. Thinking is off for Gemini 3 Flash models, as it already was for Gemini 2.5: with thinking on, a 2,000-token AI summary spent 1,001 tokens thinking and was cut off. The demo script's Google option and the cost table use the new model (#590)
  • The Huggingface combo uses Kimi K2. kimi-k2-instruct (moonshotai/Kimi-K2-Instruct-0905, through novita) replaces qwen3-235b-instruct for the Huggingface combo's AI summary, highlighting and assistant, and for the World Bank and UN Mandates summarise and tag settings. scaleway began refusing accounts without its pay-as-you-go billing (HTTP 402), so Qwen3 235B moved to nscale (#576), and nscale then stopped serving the model. No other provider the app can use still offered it, so the Huggingface combo's AI summary failed in Demo E2E, and it was also failing on evidencelab.ai. In testing, Kimi K2 wrote full summaries in about 6 seconds, and six requests at once all succeeded. The demo script's Huggingface option and the architecture diagrams use the new model (#576, #597)

Deployment & CI

  • The web interface runs behind a cloud load balancer. nginx in the ui container had the api and mcp addresses and Docker's DNS server written in, which exist only under Docker Compose. The container now fills them in at start-up from API_UPSTREAM, MCP_UPSTREAM and NGINX_RESOLVER, and looks the addresses up while it runs, so it follows a service that moves. With NGINX_REAL_IP_FROM set to the load balancer's range, it takes each visitor's address from X-Forwarded-For, so rate limits count visitors separately. The defaults are the Docker Compose values, and an invalid value stops the container at start (#583)
  • AWS example deployment. deploy/aws holds a Terraform template for Amazon ECS on Fargate (arm64), with RDS for PostgreSQL, ElastiCache, EFS, Qdrant on EC2 and an Application Load Balancer, plus scripts to deploy, run the migrate and pipeline tasks, and tear down. deploy.sh --demo 2 deploys a demo with two World Bank documents and the Bedrock models. It was tested end to end, including teardown and a fresh deploy from the published rc-v1.6.5 image. CI checks the template with plan-only Terraform tests (#585)
  • Azure example deployment. deploy/azure holds a Terraform template for Azure Container Apps in a new resource group of its own, with PostgreSQL flexible server, Azure Managed Redis, an Azure Files share, Qdrant on a VM, a container registry and an Azure AI Foundry resource with the Azure Foundry models, plus scripts to deploy, run the migrate and pipeline jobs, and tear down. deploy.sh --demo 2 was tested end to end, fresh and as an upgrade over a running deployment (#587)
  • Google Cloud example deployment. deploy/gcp holds a Terraform template for Cloud Run, with Cloud SQL for PostgreSQL, Memorystore for Redis, a Cloud Storage bucket for documents, Qdrant on a Compute Engine VM and Vertex AI models with no keys, plus scripts to deploy, run the migrate and pipeline jobs, and tear down. The web interface, API and MCP server run side by side in one Cloud Run service. deploy.sh --demo 2 was tested end to end, including teardown. Cloud Run holds the addresses it reserved in the network's subnet for 1 to 2 hours after its services are deleted, so teardown.sh waits for them to be released before it deletes the network, and it can be run again after a teardown that stopped partway. A new project must turn on Gemini in the Cloud Console first, which the docs cover. CI now checks the AWS, Azure and Google Cloud templates with plan-only Terraform tests (#591, #593)
  • Published images. A new Publish images workflow builds the Python image natively for amd64 and arm64 and publishes one multi-platform image to Docker Hub and GHCR, with build provenance and a software bill of materials attached. A release tag vX.Y.Z publishes X.Y.Z, X.Y and latest (pre-release tags get no X.Y or latest). Each push to an RC branch publishes a moving rc-vX.Y.Z tag for testing. The push credentials live in a protected dockerhub environment that only RC branches and release tags can use (#553)
  • Every pull request builds the image. Both platform builds now run on every PR to main or an RC branch and are required checks, so a change that breaks the image cannot be merged by a person or by the Dependabot auto-merge. A Dependabot bump to python:3.15-slim had been auto-merged although both builds failed (torch has no Python 3.15 wheels), breaking every image build from the RC; the base image is back on python:3.11-slim, and Dependabot no longer proposes Python minor-version bumps for the root Docker files (#560, #572, #573)
  • Run from the published image. docker-compose.hub.yml pulls the image for the API, MCP server and pipeline, mounts your config.json at start-up, and builds the web interface locally with the production build settings. The web interface is not published as an image: its build fixes the API key or sign-in mode, data sources and branding into the page, so a shared image would either fail to reach the API or expose a key. The web interface listens on 127.0.0.1:8080 by default, and the API key it sends must be set deliberately. Postgres and Qdrant keep their data in Docker named volumes, because on Docker Desktop for Mac Postgres refused a bind-mounted data folder on first start and never created its database. The API reads config.json from CONFIG_SRC when EVIDENCELAB_CONFIG is not set, the same folder the web interface build uses (#553, #559)
  • One-command demo from the published image. python3 scripts/demo/run_demo.py --mode hub asks for a model provider and key, writes .env with generated secrets, adds the World Bank demo data source, downloads and processes the reports inside the image, rebuilds the web interface and waits until the API answers. --version picks the image tag (default latest). Setup keeps secrets already in .env instead of regenerating them, since a new POSTGRES_PASSWORD locked out an existing database. The script checks Docker is installed and running before asking for any key, runs the migrations before the pipeline, shows the embedding server's log while it loads (about 6 minutes on a first run) and prints a still-working line when the pipeline is quiet for a minute (#559, #575)
  • Smaller production image. Chromium, its system libraries and Playwright's browser moved out of the shipped image into a new test build target. The runtime image dropped from 16.6 GB to 14.6 GB on arm64. LibreOffice, Tesseract, Poppler and the document fonts stay in the runtime image (#553)
  • CI scans the images production runs. The container scan now builds Dockerfile (runtime) and ui/frontend/Dockerfile.prod, instead of Dockerfile.base, ui/backend/Dockerfile and the development UI image, none of which ship. This also means every PR now builds the production web interface, which a dependency bump once broke unnoticed (#553)
  • Migrations run from a host checkout again. Migration 0036_convert_brief_citations imports application code, which only worked where PYTHONPATH was set, as in the containers. Running alembic upgrade directly on a machine failed with "No module named 'ui'", and that had failed every Demo E2E run on the RC branches since 24 October. alembic.ini now puts the repository root on Python's import path wherever alembic runs from, and a unit test reproduces the original failure (#555)

Documentation

  • New admin page Deploying to Cloud Platforms. It covers the layout, the settings a load-balanced deployment needs (shared rate-limit counts through RATELIMIT_STORAGE_URL, visitors' addresses through FORWARDED_ALLOW_IPS, and verified TLS to Postgres through PGSSLMODE and PGSSLROOTCERT), and step-by-step deploy and teardown for AWS, Azure and Google Cloud, including what each cloud needs set up first. The page says plainly that these are demonstration deployments, which need a review before production use. A Your own domain section says which templates can serve your own domain (only AWS, whose domain option has not yet been tried on a real deployment), what the site address controls, and how to add a domain on Azure and Google Cloud (#583, #585, #587, #591, #595)
  • The README and Getting Started point to the cloud deployments, and the README, About and Tech pages list every model provider. The MCP and A2A server pages name the Azure Foundry key correctly (AZURE_FOUNDRY_KEY) (#587)
  • Pipeline Configuration has an Amazon Bedrock section: the models, credentials and checking what a region offers (#585)
  • The data page carries the World Bank's required attribution statement, with a link to its terms (#584)
  • New admin page Running from the Published Image: the quick start, how the web interface reaches the API with sign-in on or off, the compose settings, adding documents, upgrading and inspecting an image's provenance (#553)
  • A Docker Hub overview page (docker/README.md, kept identical to the overview on Docker Hub), and the release process in CONTRIBUTING.md now covers checking the published images after tagging (#553, #557)
  • CLAUDE.md records how images are published: what each RC push and release tag publishes, the dockerhub environment, why the web interface is not published, and the runtime / test Dockerfile targets (#557)
  • The README, Getting Started and the image docs lead with the one-command demo, link the Docker and Python 3 install pages, and use tag placeholders (X.Y.Z, X.Y, rc-vX.Y.Z) instead of version numbers that go stale (#559, #571, #575)
  • The ratings page, the privacy page's cookie list and the features reference cover anonymous ratings (#581)
  • .env.example gains a published-image section: EVIDENCELAB_VERSION, CACHE_MOUNT_PATH and a commented REACT_APP_API_KEY explaining the sign-in trade-off (#559)

Dependencies

  • Dependabot targets rc/v1.6.5 (#551, #552)
  • Frontend: axios 1.21.0 (#563), @typescript-eslint/parser 8.72.1 (#565), http-proxy-middleware 2.0.11 (#566), @types/node 25.9.9 (#567), @playwright/test 1.64.1 (#568)
  • Backend: google-cloud-discoveryengine >= 0.20.5 (#569); langchain-aws 1.7.5 and boto3 1.43.123, for Amazon Bedrock (#585)

Upgrade Notes

  • New optional ui container settings API_UPSTREAM, MCP_UPSTREAM, NGINX_RESOLVER and NGINX_REAL_IP_FROM. Their defaults are the Docker Compose values, so compose deployments need no setting. Rebuild the ui image to pick up its new start-up script (#583).
  • New models in config.json: the Bedrock models and the AWS Bedrock combo. A deployment that keeps its own config.json can copy them to use Bedrock (#585).
  • config.json: Gemini 2.x models removed. gemini-2.5-flash, gemini-2.5-pro and gemini-2.0-flash are replaced by gemini-3.8-flash. Google has retired the old models, so a deployment that keeps its own config.json and names any of them should switch to gemini-3.8-flash (#590).
  • GOOGLE_CLOUD_LOCATION now defaults to global for Gemini models. Set it explicitly to keep using a regional Vertex AI location (#590).
  • The Brief's research request carries a new brief_section field, and the API writes the section prompt. A browser tab left open across the upgrade runs the old code, which still fails on long sections, until it is reloaded (#586).
  • New Python dependencies langchain-aws and boto3. Rebuild images you build from source (#585).
  • Migration 0038_add_rating_anonymous_id adds a nullable, indexed anonymous_id column to user_ratings. The API applies it on start-up, and existing ratings are unchanged (#581).
  • New config.json key application.features.anonymous_ratings. Leave it out, or set it to false, to keep ratings for signed-in users only, as before. The repository's config.json sets it to true (#581).
  • New optional environment variable RATE_LIMIT_RATINGS (default 30/minute) limits rating submissions per client, signed in or not (#581).
  • config.json: default reranker. A deployment that keeps its own config.json should set application.search.rerank_model to a remote reranker such as Cohere-rerank-v4.0-fast (which needs the Azure Foundry credentials) or vertex-ai-ranker, so a request without a reranker never loads the local Jina model into the API (#576, #578).
  • config.json: qwen3-235b-instruct removed. kimi-k2-instruct replaces it. Hugging Face's providers no longer serve Qwen3 235B to the app, so a deployment that keeps its own config.json and names qwen3-235b-instruct or Qwen/Qwen3-235B-A22B-Instruct-2507 should switch to kimi-k2-instruct, with inference_provider novita (#597).
  • The chat request's search_settings accepts two optional fields, rerank_model_page_size (1 to 1000) and embedding_model. Older clients that leave them out behave as before (#579).
  • docker-compose.hub.yml keeps Postgres and Qdrant in named volumes and no longer reads DB_DATA_MOUNT. Anyone who ran an rc-v1.6.5 image with that file and a host data folder must move the data into the volumes or start fresh (#559).
  • alembic upgrade now works from a host checkout without setting PYTHONPATH (#555). Inside the containers nothing changes: the added path is /app, which PYTHONPATH already gave.
  • The runtime image no longer contains Chromium, chromedriver or Playwright's browser. Production code never used them. Anything that ran browser tests inside the runtime image must build --target test instead. The development docker-compose.yml, CI's integration tests and Demo E2E already do. docker-compose.prod.yml and the Azure pipeline scripts still build runtime.
  • To run a release without building the Python image, use docker-compose.hub.yml with EVIDENCELAB_VERSION set. It needs API_SECRET_KEY, AUTH_SECRET_KEY, POSTGRES_PASSWORD and REACT_APP_API_KEY (which may be empty when sign-in is on); see the new docs page. Existing deployments that build from source need no change.
  • Rebuild the api, mcp and pipeline images if you build from source, to pick up the smaller runtime image.