examples/provider-databricks/README.md
Test Databricks Foundation Model APIs with promptfoo.
You can run this example with:
npx promptfoo@latest init --example provider-databricks
cd provider-databricks
This example requires the following environment variables:
DATABRICKS_WORKSPACE_URL - Your Databricks workspace URL (e.g., https://your-workspace.cloud.databricks.com)DATABRICKS_TOKEN - Your Databricks access tokenYou can set these in a .env file or directly in your environment:
export DATABRICKS_WORKSPACE_URL=https://your-workspace.cloud.databricks.com
export DATABRICKS_TOKEN=your-databricks-token
# Run the evaluation
npx promptfoo@latest eval
# View results in the web UI
npx promptfoo@latest view
For vision capabilities, use the dedicated configuration:
npx promptfoo@latest eval -c promptfooconfig.vision.yaml