Being invited to experience https://github.com/tensorzero/tensorzero
- Powerful Prompt Template System in terms of input/output content control
- Clean Code
- Dockerized
- Active GitHub Dev Community
- Inference-Time Optimizations (haven't experienced yet)
- More...
- Inference: access every provider with one API
- Observability: stored in your own database
- Optimization: better prompts, models, and inference strategies
- Experimentation: built-in A/B testing, routing, fallbacks
Created a simplified interactive Web UI to experiment/compare with/without Prompt Template control

- Install Docker
- Install Node.js
- To run proxy-server.js to enable cors access from Web browser, currently tensorzero/gateway doesn't allow cors
- Clone my Repository
- Initialise Node.js environment
- Go to cloned folder from console
- Run
npm init -y - Run
npm i express - Run
npm i http-proxy-middleware
- Fill in following values to
TensorZero-Web\config\user_settings.cmd5places to replace
REM @%YOUR_NETWORD_NAME%: you name it
REM @%YOUR_DB_NAME%: ClickHouse DB name
REM @%YOUR_DB_USER_NAME%: ClickHouse DB user
REM @%YOUR_DB_PASSWORD%: ClickHouse DB password
REM @%YOUR_MOUNT_PATH%: path of 'tensorzero.toml' on your local
REM @%AZURE_SERVICE_KEY%: get it from Azure Portal
SET YOUR_NETWORD_NAME=<FILL_BEFORE_USE>
SET YOUR_DB_NAME=<FILL_BEFORE_USE>
SET YOUR_DB_USER_NAME=<FILL_BEFORE_USE>
SET YOUR_DB_PASSWORD=<FILL_BEFORE_USE>
SET YOUR_MOUNT_PATH=%cd%/config
SET AZURE_SERVICE_KEY=<FILL_BEFORE_USE>- Fill in following values to
TensorZero-Web\config\tensorzero.toml4places to replace- TensorZero supports multiple popular LLMs, I used Azure
gpt-4omodel to test
<AZURE_OPENAI_MODEL>
<AZURE_OPENAI_ENDPOINT>
- Run
start_docker_containers.cmdin console- There might be blockers setting up ClickHouse DB instance on container on the first run, I struggled for hours, if you use ClickHouse cloud account might be easier
- Node.js proxy server is also started at the end of the script
- Chat in
tensorzero_chat.html- Check/Uncheck
Agent Without Templateto switch off/on Diff for Prompt Template control - Press
Enterkey to send message
- Check/Uncheck
- Impressive Features
- Delicately designed system
A healthcare startup recently leveraged TensorZero to optimize their LLM-powered voice agents, resulting in a ~65% improvement in task success.