Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

groq_eval_score-0.2.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

groq_eval_score-0.2.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for groq_eval_score-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1f43c50bc3bbc4c01a7adbbda4bd97569c2ffef591c39b47dcfac888241de8c5
MD5 f5014c41ac6d5683d99247ac264a1b1a
BLAKE2b-256 0f10520260a5efd81d2d95ae916558b516dbced9e4754930f5ca9f5a50d3102e

See more details on using hashes here.

File details

Details for the file groq_eval_score-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for groq_eval_score-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c746ba97b5df323b889cf56fabfba61d3c0dd8a01a8fce9b9792657dc73683a
MD5 60b6bfc600ca1574bb2eb8263ec964bd
BLAKE2b-256 7b9f11ee31764fd7cb91a9a376790680b1f821bcefa1ac9296ce412d3f5ece32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page