DeepFellow DOCS

Evaluate

Evaluate a prompt using the LLM.

POST
/evaluate
AuthorizationBearer <token>

In: header

Header Parameters

OpenAI-Organization?Openai-Organization
OpenAI-Project?Openai-Project
queryQuery
responseResponse
vector_store_idsVector Store Ids
userUser

Response Body

curl -X POST "https://loading/evaluate" \
  -H "OpenAI-Organization: 5eb7cf5a86d9755df3a6c593" \
  -H "OpenAI-Project: 5eb7cf5a86d9755df3a6c593" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "What is the capital of France?",
    "response": "Lyon",
    "user": "johndoe",
    "vector_store_ids": [
      "68dfa02c5cd5ef28c4d4081b"
    ]
  }'
{
  "confidence": 0.95,
  "explanation": "The capital of France is Paris, not Lyon.",
  "has_hallucination": true
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.