A package to evaluate output relevancy using Groq LLM
Project description
groq-eval-score
A Python package to evaluate the relevance of LLM outputs using the Groq API.
It compares input, expected output, and actual output, returning a score between 0.0 and 1.0.
Installation
pip install groq-eval-score
Usage
from groq_eval import GroqEvaluator
Initialize evaluator
evaluator = GroqEvaluator(api_key="YOUR_API_KEY")
Evaluate relevance
score = evaluator.evaluate( input_text="capital of france", expected_output="paris", actual_output="The capital of France is Paris." )
print("Relevance Score:", score) # Example: 1.0
Features
- Returns a relevance score between 0.0 and 1.0
- Easy class-based interface
- Uses Groq API for fast and efficient evaluation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file groq_eval_score-0.2.0.tar.gz.
File metadata
- Download URL: groq_eval_score-0.2.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f43c50bc3bbc4c01a7adbbda4bd97569c2ffef591c39b47dcfac888241de8c5
|
|
| MD5 |
f5014c41ac6d5683d99247ac264a1b1a
|
|
| BLAKE2b-256 |
0f10520260a5efd81d2d95ae916558b516dbced9e4754930f5ca9f5a50d3102e
|
File details
Details for the file groq_eval_score-0.2.0-py3-none-any.whl.
File metadata
- Download URL: groq_eval_score-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c746ba97b5df323b889cf56fabfba61d3c0dd8a01a8fce9b9792657dc73683a
|
|
| MD5 |
60b6bfc600ca1574bb2eb8263ec964bd
|
|
| BLAKE2b-256 |
7b9f11ee31764fd7cb91a9a376790680b1f821bcefa1ac9296ce412d3f5ece32
|