> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vivi.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Runs

Evaluation runs are a **structured test of an agent’s performance** before it is moved into production. They measure how well an agent answers a set of predefined questions, **tracking accuracy**, relevance, hallucination percentage, usefulness, and **response time**. Each evaluation run produces a detailed record by using a specified agent, dataset, and results. You can review answers, scores, and reasoning to identify where the agent performs well and where adjustments are needed.

By using runs, you can receive **evidence-based insight** into whether an agent is production-ready. This exposes weaknesses in prompts, knowledge bases, or integrations **before your customers encounter them**. Use evaluations to optimize your agents and confidently deploy them.

***

## How to Use Evaluation Runs

<video autoPlay muted loop playsInline className="w-full aspect-video rounded-xl" src="https://mintcdn.com/ksg-ea85c748/6qEU6YVXdhiPsX-i/videos/vivi_evaluation_snippet.mp4?fit=max&auto=format&n=6qEU6YVXdhiPsX-i&q=85&s=8fa84b2c8022c8255d66c90ee05cd672" data-path="videos/vivi_evaluation_snippet.mp4" />

<Steps>
  <Step title="Select an Agent">
    Choose the agent you want to test.
  </Step>

  <Step title="Select a Dataset">
    Pick or create a dataset of test questions to evaluate the agent against.
  </Step>

  <Step title="Run the Evaluation">
    Define the number of repetitions and launch the evaluation run.
  </Step>

  <Step title="Review Results">
    Inspect answers, correctness, relevance, hallucination percentage, usefulness, and response time.
  </Step>

  <Step title="Refine and Re-Test">
    Adjust prompts, knowledge bases, or integrations based on findings. Run new evaluations until the agent meets your performance threshold.
  </Step>
</Steps>

<Note>
  You can run a maximum of **500 evaluations** per run. Evaluations are the number of repetitions you select multiplied by the amount of questions per dataset. For example, if your dataset contains *100 questions* you may select a repetition amount of *5* or less.
</Note>

## Scoring Dimensions

<Columns cols={2}>
  <Card title="Groundedness" icon="magnifying-glass">
    *answer vs. context* <br /><br />
    Measures whether the answer is supported by the provided context, helping **prevent hallucinations**.<br /><br />
    Scores:

    * 100-76: Fully grounded; all claims are directly supported by context.
    * 75-61: Mostly grounded; majority is supported, minor unsupported details.
    * 60-41: Partially grounded; some statements are traceable, but mixed in with unsupported claims.
    * 40-21: Weakly grounded; mostly unsupported, only small fragments connect to context.
    * 20-0: Not grounded; entirely fabricated, no link to context.
  </Card>

  <Card title="Relevance" icon="bullseye">
    *context vs. question*<br /><br />
    Evaluates whether the retrieved context is relevant to the specific question being asked.<br /><br />
    Scores:

    * 100-76: Fully relevant; context is highly pertinent and sufficient to answer the question.
    * 75-61: Mostly relevant; context is useful with minor extra noise.
    * 60-41: Partially relevant; some relevant fragments, but lots of extra or distracting content.
    * 40-21: Low relevance; Mostly noise, little useful info.
    * 20-0: Irrelevant; context unrelated.
  </Card>

  <Card title="Usefulness" icon="lightbulb">
    *answer vs. question*<br /><br />
    Measures how actionable and helpful the answer is.<br /><br />
    Scores:

    * 100-76: Highly useful; comprehensive, clear, and insighful.
    * 75-61: Useful; solid answer, covers key points, and is easy to understand.
    * 60-41: Somewhat useful; addresses the question, but lacks details, depth, or clarity.
    * 40-21: Barely useful; minimal attempt, vague, or incomplete.
    * 20-0: Not useful; doesn't address the question at all.
  </Card>

  <Card title="Correctness" icon="puzzle-piece">
    *answer vs. reference*<br /><br />
    Compares the answer against a reference or gold-standard answer.<br /><br />
    Scores:

    * 100-76: Fully correct; matches the reference answer (or semantically equivalent).
    * 75-61: Mostly correct; small errors or omissions, but main facts are right.
    * 60-41: Partially correct; mix of correct and incorrect information.
    * 40-21: Mostly incorrect; major errors, minor overlap with correct answer.
    * 20-0: Incorrect; completely wrong or contradicts reference.
  </Card>
</Columns>

<Card title="Response Time" icon="timer" horizontal>
  Tracks the duration it takes for the agent to generate an answer.\
  Some models may respond more slowly if they prioritize depth of reasoning or complex analysis.
</Card>

***

## Best Practices

* Use run results to fine-tune prompts, knowledge bases, or integrations.
* Re-run evaluations **after updates** to confirm ongoing accuracy.
* Always run evaluations **before moving an agent into production**.
