Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Michael 3cdff2b898
docs(providers): update available databricks models (#4887)
1 month ago
..
3cdff2b898
docs(providers): update available databricks models (#4887)
1 month ago
3cdff2b898
docs(providers): update available databricks models (#4887)
1 month ago
3cdff2b898
docs(providers): update available databricks models (#4887)
1 month ago
3cdff2b898
docs(providers): update available databricks models (#4887)
1 month ago

README.md

You have to be logged in to leave a comment. Sign In

databricks

Test Databricks Foundation Model APIs with promptfoo.

Getting Started

You can run this example with:

npx promptfoo@latest init --example databricks

Prerequisites

  1. A Databricks workspace with Foundation Model APIs enabled
  2. A Databricks access token

Environment Variables

This example requires the following environment variables:

You 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

Running the Example

# Run the evaluation
npx promptfoo@latest eval

# View results in the web UI
npx promptfoo@latest view

What This Example Demonstrates

  • Using Databricks pay-per-token endpoints (Foundation Models)
  • Basic text generation with Llama 3.3
  • Cost tracking with usage context
  • Simple assertions and quality checks

Vision Models

For vision capabilities, use the dedicated configuration:

npx promptfoo@latest eval -c promptfooconfig.vision.yaml

Learn More

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...