Repository navigation
Evidence Lab v1.6.5 — Ready-built images, cloud deployments for AWS, Azure and Google Cloud, and anonymous ratings
[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.randomUUIDonly 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 existinggenerateUUIDhelper (#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_sizeand 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_sectionfield 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 localjinaai/jina-reranker-v2-base-multilingualtoCohere-rerank-v4.0-faston 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 needsUSER_MODULEset toon_passive, and it is off when the key is absent. The API gives each anonymous browser a random ID in an httpOnlyevidencelab_ratercookie 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, byRATE_LIMIT_RATINGS(default30/minute). evidencelab.ai turns the setting on (#581)
Models
- Amazon Bedrock as a model provider (
aws_bedrock).config.jsongains 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 inus-west-2), and an AWS Bedrock model combo, which the demo script offers. Evidence Lab calls Bedrock with the standard AWS credentials andAWS_REGION, and a rerank model can name its ownregion. Nova 2 Lite's price is in the cost table (#585) - Google Vertex uses
gemini-3.8-flash. Google retiredgemini-2.5-flashandgemini-2.5-proon Vertex AI on 20 October 2026, andgemini-2.0-flashearlier, so the Google Vertex combo's AI summary, highlighting and assistant failed with HTTP 404.config.jsonreplaces the three entries withgemini-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 thegloballocation in testing, soGOOGLE_CLOUD_LOCATIONnow defaults toglobalinstead ofus-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) replacesqwen3-235b-instructfor 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
uicontainer 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 fromAPI_UPSTREAM,MCP_UPSTREAMandNGINX_RESOLVER, and looks the addresses up while it runs, so it follows a service that moves. WithNGINX_REAL_IP_FROMset to the load balancer's range, it takes each visitor's address fromX-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/awsholds 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 2deploys 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 publishedrc-v1.6.5image. CI checks the template with plan-only Terraform tests (#585) - Azure example deployment.
deploy/azureholds 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 2was tested end to end, fresh and as an upgrade over a running deployment (#587) - Google Cloud example deployment.
deploy/gcpholds 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 2was 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, soteardown.shwaits 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.ZpublishesX.Y.Z,X.Yandlatest(pre-release tags get noX.Yorlatest). Each push to an RC branch publishes a movingrc-vX.Y.Ztag for testing. The push credentials live in a protecteddockerhubenvironment 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
mainor 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 topython:3.15-slimhad 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 onpython: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.ymlpulls the image for the API, MCP server and pipeline, mounts yourconfig.jsonat 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 on127.0.0.1:8080by 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 readsconfig.jsonfromCONFIG_SRCwhenEVIDENCELAB_CONFIGis 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 hubasks for a model provider and key, writes.envwith 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.--versionpicks the image tag (defaultlatest). Setup keeps secrets already in.envinstead of regenerating them, since a newPOSTGRES_PASSWORDlocked 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
testbuild 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) andui/frontend/Dockerfile.prod, instead ofDockerfile.base,ui/backend/Dockerfileand 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_citationsimports application code, which only worked wherePYTHONPATHwas set, as in the containers. Runningalembic upgradedirectly 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.ininow 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 throughFORWARDED_ALLOW_IPS, and verified TLS to Postgres throughPGSSLMODEandPGSSLROOTCERT), 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
dockerhubenvironment, why the web interface is not published, and theruntime/testDockerfile 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
featuresreference cover anonymous ratings (#581) .env.examplegains a published-image section:EVIDENCELAB_VERSION,CACHE_MOUNT_PATHand a commentedREACT_APP_API_KEYexplaining 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
uicontainer settingsAPI_UPSTREAM,MCP_UPSTREAM,NGINX_RESOLVERandNGINX_REAL_IP_FROM. Their defaults are the Docker Compose values, so compose deployments need no setting. Rebuild theuiimage 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 ownconfig.jsoncan copy them to use Bedrock (#585). config.json: Gemini 2.x models removed.gemini-2.5-flash,gemini-2.5-proandgemini-2.0-flashare replaced bygemini-3.8-flash. Google has retired the old models, so a deployment that keeps its ownconfig.jsonand names any of them should switch togemini-3.8-flash(#590).GOOGLE_CLOUD_LOCATIONnow defaults toglobalfor Gemini models. Set it explicitly to keep using a regional Vertex AI location (#590).- The Brief's research request carries a new
brief_sectionfield, 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-awsandboto3. Rebuild images you build from source (#585). - Migration
0038_add_rating_anonymous_idadds a nullable, indexedanonymous_idcolumn touser_ratings. The API applies it on start-up, and existing ratings are unchanged (#581). - New
config.jsonkeyapplication.features.anonymous_ratings. Leave it out, or set it tofalse, to keep ratings for signed-in users only, as before. The repository'sconfig.jsonsets it totrue(#581). - New optional environment variable
RATE_LIMIT_RATINGS(default30/minute) limits rating submissions per client, signed in or not (#581). config.json: default reranker. A deployment that keeps its ownconfig.jsonshould setapplication.search.rerank_modelto a remote reranker such asCohere-rerank-v4.0-fast(which needs the Azure Foundry credentials) orvertex-ai-ranker, so a request without a reranker never loads the local Jina model into the API (#576, #578).config.json:qwen3-235b-instructremoved.kimi-k2-instructreplaces it. Hugging Face's providers no longer serve Qwen3 235B to the app, so a deployment that keeps its ownconfig.jsonand namesqwen3-235b-instructorQwen/Qwen3-235B-A22B-Instruct-2507should switch tokimi-k2-instruct, withinference_providernovita(#597).- The chat request's
search_settingsaccepts two optional fields,rerank_model_page_size(1 to 1000) andembedding_model. Older clients that leave them out behave as before (#579). docker-compose.hub.ymlkeeps Postgres and Qdrant in named volumes and no longer readsDB_DATA_MOUNT. Anyone who ran anrc-v1.6.5image with that file and a host data folder must move the data into the volumes or start fresh (#559).alembic upgradenow works from a host checkout without settingPYTHONPATH(#555). Inside the containers nothing changes: the added path is/app, whichPYTHONPATHalready 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
runtimeimage must build--target testinstead. The developmentdocker-compose.yml, CI's integration tests and Demo E2E already do.docker-compose.prod.ymland the Azure pipeline scripts still buildruntime. - To run a release without building the Python image, use
docker-compose.hub.ymlwithEVIDENCELAB_VERSIONset. It needsAPI_SECRET_KEY,AUTH_SECRET_KEY,POSTGRES_PASSWORDandREACT_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,mcpandpipelineimages if you build from source, to pick up the smaller runtime image.