Prompt Chain

Query Groq with Promptfoo

Provider Groq is a promptfoo example demonstrating how to configure and test Groq AI provider integration in prompt evaluation workflows.

Works with groqpromptfoo

54
Spark score
out of 100
Updated yesterday
Version code-scan-action-0.1

Add to Favorites

Why it matters

Integrate with the Groq API using promptfoo to execute and evaluate LLM prompts. This asset demonstrates how to leverage promptfoo's capabilities for testing and managing LLM interactions with a specific provider.

Outcomes

What it gets done

01

Configure promptfoo to use the Groq provider.

02

Define and execute prompt chains against the Groq API.

03

Analyze and compare the outputs from different prompts.

04

Facilitate data extraction and summarization from LLM responses.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/pfoo-provider-groq | bash

Capabilities

What this chain does

Query a database

Writes and executes SQL or NoSQL queries on databases.

Extract

Pulls structured data fields from unstructured text.

Summarize

Condenses long documents or threads into key takeaways.

Overview

Provider Groq

What it does

Provider Groq is a reference example from the promptfoo repository that shows how to configure Groq as an LLM provider for prompt testing. It includes the necessary setup to run evaluations using Groq's inference API within the promptfoo framework.

How it connects

Use this example when you want to integrate Groq into your promptfoo evaluation workflow. It's ideal for developers who need a starting point to test and benchmark prompts using Groq's fast inference capabilities alongside promptfoo's testing tools.

Source README

provider-groq (Groq)

You can run this example with:

npx promptfoo@latest init --example provider-groq
cd provider-groq

Usage

To get started, set your GROQ_API_KEY environment variable.

Next, edit promptfooconfig.yaml.

Then run:

promptfoo eval

Afterwards, you can view the results by running promptfoo view

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.