> ## Documentation Index
> Fetch the complete documentation index at: https://r2r-patch-decruft-openapi-json.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Observability

> Manage and observe your R2R system.

## Analytics and Observability

R2R provides various tools for analytics and observability to help you monitor and improve the performance of your RAG system.

### Completion Scores

Scores act as an observability metric and are attached to RAG completions in R2R.

Scores are bound to values between -1 (a strong negative association) and 1 (a strong positive association), where:

* A score close to 1 may indicate a highly relevant and accurate completion
* A score close to 0 may indicate a neutral or uncertain quality
* A score close to -1 may indicate a potentially irrelevant or incorrect completion

```javascript
const scoringResponse = await client.login("message_id_here", "password123");
```

<AccordionGroup>
  <Accordion title="Response">
    <ResponseField name="response" type="dict">
      The response from the R2R system.

      ```javascript
      { 'results': 'ok' }
      ```
    </ResponseField>
  </Accordion>
</AccordionGroup>

<ParamField path="message_id" type="string" required>
  The unique identifier of the completion message to be scored. Found in logs for a message.
</ParamField>

<ParamField path="score" type="float" required>
  The score to assign to the completion, ranging from -1 to 1.
</ParamField>
