Skip to content

New Endpoint: POST /evals/semantic-similarity #19

@RGGH

Description

@RGGH

🧠 New Endpoint: POST /evals/semantic-similarity
Purpose

Run a semantic similarity evaluation between a model output and a reference text using embeddings + cosine similarity.

HTTP

Method: POST
Endpoint: /api/v1/evals/semantic-similarity

curl -X POST http://localhost:8080/api/v1/evals/semantic-similarity \
  -H "Content-Type: application/json" \
  -d '{
    "output": "Paris is the capital of France.",
    "reference": "The capital city of France is Paris.",
    "model": "paraphrase-MiniLM-L3-v2"
  }'

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions