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

# Dataset Analytics

> Understand usage patterns and quality across your entire datasets

While document-level analytics show individual pieces of content, dataset analytics reveal patterns across your entire knowledge base. This helps you assess overall quality and identify systemic issues.

## What Is a Dataset?

A dataset is a collection of related documents, typically grouped by source. Datasets are created automatically when you sync a data source, grouped by the `source` field in your vector database.

<CardGroup cols={2}>
  <Card title="Product Documentation" icon="book">
    All docs from your product guide
  </Card>

  <Card title="Support Articles" icon="life-ring">
    Knowledge base articles
  </Card>

  <Card title="Engineering Wiki" icon="code">
    Internal technical docs
  </Card>

  <Card title="API Reference" icon="brackets-curly">
    API documentation
  </Card>
</CardGroup>

## Viewing Dataset Analytics

<Steps>
  <Step title="Navigate to Datasets">
    Go to **Data → Datasets** in the navigation menu
  </Step>

  <Step title="Browse Your Datasets">
    You'll see a list of all datasets with their key metrics at a glance
  </Step>

  <Step title="View Detailed Analytics">
    Click on any dataset to see comprehensive analytics and insights
  </Step>
</Steps>

<Frame caption="Dataset Analytics">
  <img src="https://mintcdn.com/arcbeam/1w-VO_d-egvziFR1/images/data-insights/dataset-analytics.png?fit=max&auto=format&n=1w-VO_d-egvziFR1&q=85&s=00feec340591ca1acc0e4c270ceb9b21" alt="Insights into how this dataset is being used by your AI systems." width="3820" height="2334" data-path="images/data-insights/dataset-analytics.png" />
</Frame>

## Dataset Overview Metrics

<CardGroup cols={2}>
  <Card title="Total Documents" icon="files">
    **How many documents** are in this dataset.
  </Card>

  <Card title="Total Retrievals" icon="arrow-down-to-bracket">
    **How many times** any document in this dataset was retrieved.
  </Card>
</CardGroup>

| Dataset Size | Document Count | Meaning                        |
| ------------ | -------------- | ------------------------------ |
| Large        | 1000+          | Comprehensive coverage         |
| Medium       | 100-1000       | Moderate coverage              |
| Small        | \< 100         | Focused or incomplete coverage |

| Activity Level | Meaning                             |
| -------------- | ----------------------------------- |
| High           | Core dataset, frequently referenced |
| Medium         | Regularly used                      |
| Low            | Rarely needed                       |

### Usage Rate

**Percentage of documents** that have been retrieved at least once.

| Usage Rate | Meaning                               |
| ---------- | ------------------------------------- |
| > 50%      | Excellent - Most documents are useful |
| 30-50%     | Good - Majority of docs are relevant  |
| 10-30%     | Fair - Many unused documents          |
| \< 10%     | Poor - Dataset mostly unused          |

<Warning>
  **Low usage rate?** Consider these actions:

  * Many documents are irrelevant → Prune the dataset
  * Embeddings are poor → Re-embed with better model
  * Documents aren't discoverable → Improve metadata/chunking
</Warning>

### Average Relevance <Badge icon="clock" color="orange">Coming Soon</Badge>

**Mean relevance score** across all retrievals in this dataset.

| Score     | Quality                             |
| --------- | ----------------------------------- |
| > 0.75    | Excellent - Strong semantic matches |
| 0.60-0.75 | Good - Mostly relevant              |
| 0.45-0.60 | Fair - Some weak matches            |
| \< 0.45   | Poor - Retrieval quality issues     |

<Warning>
  **Low average relevance?** Indicates:

  * Poor embeddings
  * Documents not well-written for retrieval
  * Retrieval parameters too loose
</Warning>

## Document Distribution

See how retrievals are distributed across documents to understand which content is most valuable and which might need attention.

### Top Documents

The most-retrieved documents in this dataset.

| Information Shown              | Description                             |
| ------------------------------ | --------------------------------------- |
| Document name                  | Title of the document                   |
| Retrieval count                | Number of times retrieved               |
| Percentage of total retrievals | Share of all retrievals in this dataset |

### Unused Documents

Documents with zero retrievals that may need attention.

| Information Shown | Description                              |
| ----------------- | ---------------------------------------- |
| Document name     | Title of the document                    |
| Last updated      | When it was last modified                |
| Reason            | Why it might be unused (if determinable) |

<Info>
  Click on any unused document to read its content, check if it should be deleted or improved, and verify embeddings are working.
</Info>

### Retrieval Distribution Graph <Badge icon="clock" color="orange">Coming Soon</Badge>

Histogram showing how many documents fall into each retrieval count bucket.

| Bucket   | Retrieval Count   | Example Document Count |
| -------- | ----------------- | ---------------------- |
| Bucket 0 | 0 retrievals      | 45 documents           |
| Bucket 1 | 1-10 retrievals   | 30 documents           |
| Bucket 2 | 11-50 retrievals  | 15 documents           |
| Bucket 3 | 51-100 retrievals | 8 documents            |
| Bucket 4 | 100+ retrievals   | 2 documents            |

<Tip>
  Helps visualize how many documents are truly unused and if usage is concentrated or spread evenly.
</Tip>

<Info>
  **Highly concentrated retrievals?** If top 10 documents account for >80% of retrievals:

  | Aspect | Interpretation                      |
  | ------ | ----------------------------------- |
  | Good   | You know which docs are critical    |
  | Bad    | Rest of dataset might be irrelevant |
</Info>

## Usage Trends Over Time

Graph showing retrieval activity for this dataset over time:

<Frame caption="Dataset Usage over Time">
  <img src="https://mintcdn.com/arcbeam/1w-VO_d-egvziFR1/images/data-insights/dataset-usage.png?fit=max&auto=format&n=1w-VO_d-egvziFR1&q=85&s=8df2c3a2b2e41f6c0f154e09aab9a25a" alt="How often this dataset gets pulled into your AI system over time." width="1878" height="1006" data-path="images/data-insights/dataset-usage.png" />
</Frame>

| Trend Type        | What It Means                                   |
| ----------------- | ----------------------------------------------- |
| Growth Trends     | Increasing usage as more queries come in        |
| Declining Trends  | Dataset becoming less relevant over time        |
| Usage Spikes      | Sudden interest in this topic or content area   |
| Seasonal Patterns | Certain times of year show predictable patterns |

<Tip>
  **Example**: Tax documentation dataset spikes in March-April during tax season.
</Tip>

## Quality Indicators <Badge icon="clock" color="orange">Coming Soon</Badge>

### User Feedback Correlation

How users rate traces that used documents from this dataset:

| Metric            | Description                                    |
| ----------------- | ---------------------------------------------- |
| Thumbs up count   | Positive feedback on traces using this dataset |
| Thumbs down count | Negative feedback                              |
| Satisfaction rate | Percentage positive                            |

### Coverage Score

**What percentage of queries** in your traces find relevant documents (relevance > 0.7) from this dataset.

| Coverage Level | Percentage | Meaning                                      |
| -------------- | ---------- | -------------------------------------------- |
| High           | >70%       | Dataset answers most questions in its domain |
| Medium         | 40-70%     | Some gaps exist                              |
| Low            | \<40%      | Significant gaps, many queries unanswered    |

<Warning>
  **Low satisfaction?** This dataset may:

  * Contain outdated information
  * Have poor quality documents
  * Not cover topics users expect
</Warning>

<Tip>
  **Example**: Support articles dataset has 45% coverage → 55% of support queries find no good documents.
</Tip>

## Comparing Datasets

View multiple datasets side-by-side to make informed decisions about where to focus your efforts.

| Comparison Metric | What It Reveals                                        |
| ----------------- | ------------------------------------------------------ |
| Usage Rates       | Which datasets are most utilized by your AI system     |
| Average Relevance | Which have best quality and strongest semantic matches |
| User Satisfaction | Which lead to good responses and positive feedback     |
| Growth Trends     | Which are growing or declining in importance           |

<Check>
  **Use comparison view to**:

  * Prioritize which datasets to improve
  * Allocate resources (focus on high-usage, low-quality datasets)
  * Identify which datasets can be archived or removed
</Check>

## Use Cases

### Identify Low-Quality Datasets

**Goal**: Find datasets that need improvement.

<Steps>
  <Step title="Sort by Average Relevance">
    Sort datasets by **Average Relevance** (low to high) to surface the lowest quality datasets
  </Step>

  <Step title="Check Bottom Datasets">
    Review the bottom 3 datasets and examine sample documents from each
  </Step>

  <Step title="Determine Action">
    Decide what to do based on the root cause:

    * Documents are poorly written → Rewrite
    * Embeddings are bad → Re-embed
    * Dataset is irrelevant → Archive or remove
  </Step>
</Steps>

<Check>
  **Result**: Higher overall retrieval quality across your system.
</Check>

### Prioritize Dataset Updates

**Goal**: Focus updates on high-impact datasets.

<Steps>
  <Step title="Sort by Total Retrievals">
    Sort by **Total Retrievals** (high to low) to identify your most-used datasets
  </Step>

  <Step title="Check Last Updated Date">
    Review the "Last Updated" date for top datasets
  </Step>

  <Step title="Prioritize Old, High-Traffic Datasets">
    Focus your efforts on updating old, high-traffic datasets first. Deprioritize low-traffic datasets.
  </Step>
</Steps>

<Check>
  **Result**: Maximum impact from limited resources.
</Check>

### Find Coverage Gaps

**Goal**: Discover topics where you need more content.

<Steps>
  <Step title="Identify Low Coverage Datasets">
    Look at datasets with **low coverage scores** to find areas with content gaps
  </Step>

  <Step title="Analyze Failed Retrievals">
    Check traces that found no relevant documents and group by topic/query type
  </Step>

  <Step title="Fill the Gaps">
    Identify missing content areas and add new documents to fill those gaps
  </Step>
</Steps>

<Check>
  **Result**: Better coverage, fewer unanswered queries.
</Check>

### Measure Dataset Improvement

**Goal**: Track progress after improving a dataset.

<Steps>
  <Step title="Record Baseline Metrics">
    Document current metrics: usage rate, average relevance, and user satisfaction
  </Step>

  <Step title="Update and Re-sync">
    Update documents in the dataset and re-sync your data source
  </Step>

  <Step title="Wait for Data">
    Wait 2-4 weeks for enough usage data to accumulate
  </Step>

  <Step title="Compare Results">
    Check metrics again and compare before/after to measure improvement
  </Step>
</Steps>

<Check>
  **Result**: Data-driven proof of improvement.
</Check>

### Retire Unused Datasets

**Goal**: Clean up datasets no one uses.

<Steps>
  <Step title="Filter Low Usage">
    Filter to datasets with **\<5% usage rate** over 90 days
  </Step>

  <Step title="Review Content">
    Review what's in these datasets to understand why they're unused
  </Step>

  <Step title="Determine Root Cause">
    Decide if truly irrelevant or just poorly embedded
  </Step>

  <Step title="Clean Up">
    Archive or delete unused datasets to keep your vector database lean
  </Step>
</Steps>

<Check>
  **Result**: Faster retrievals, reduced storage costs.
</Check>

## Dataset Health Score

Arcbeam calculates an overall health score for each dataset based on multiple factors:

<CardGroup cols={2}>
  <Card title="Usage Rate" icon="chart-simple">
    Higher is better - more documents being retrieved
  </Card>

  <Card title="Average Relevance" icon="bullseye">
    Higher is better - stronger semantic matches
  </Card>

  <Card title="User Satisfaction" icon="heart">
    Higher is better - positive user feedback
  </Card>

  <Card title="Coverage" icon="layer-group">
    Higher is better - fewer gaps in content
  </Card>

  <Card title="Recency of Updates" icon="clock">
    More recent is better - fresh content
  </Card>
</CardGroup>

| Score  | Health                                            |
| ------ | ------------------------------------------------- |
| 80-100 | Excellent - Well-maintained, high-quality dataset |
| 60-79  | Good - Solid dataset, minor improvements possible |
| 40-59  | Fair - Needs attention, several issues            |
| \< 40  | Poor - Major issues, requires immediate work      |

<Info>
  **Use health score to**:

  * Quickly assess all datasets at a glance
  * Prioritize which datasets need work
  * Track improvements over time
</Info>

## Setting Goals

Set improvement targets for your datasets to drive measurable progress.

### Example Goals

<CardGroup cols={2}>
  <Card title="Product Documentation Dataset" icon="book-open" color="#3b82f6">
    **Current State**:

    * 42% usage rate
    * 0.68 avg relevance

    **Target**:

    * 60% usage rate
    * 0.75 avg relevance

    **Action Plan**:

    * Update top 20 docs
    * Remove 15 unused docs
    * Re-embed all documents
  </Card>

  <Card title="Support Articles Dataset" icon="life-ring" color="#8b5cf6">
    **Current State**:

    * 35% user satisfaction

    **Target**:

    * 70% user satisfaction

    **Action Plan**:

    * Rewrite top 10 most-used articles
    * Add 20 new articles for gaps
  </Card>
</CardGroup>

## Best Practices

### Review Dataset Health Monthly

Set a recurring task to monitor and improve your datasets.

| Task                   | Description                           |
| ---------------------- | ------------------------------------- |
| Check health scores    | Review health scores for all datasets |
| Investigate drops      | Look into any scores that decreased   |
| Celebrate improvements | Acknowledge progress and wins         |

### Focus on High-Usage Datasets First

Limited time? Prioritize based on this decision matrix:

| Usage Level | Quality Level | Action Priority                  |
| ----------- | ------------- | -------------------------------- |
| High        | Low           | Fix these first - maximum impact |
| High        | High          | Maintain current quality         |
| Low         | Low           | Archive or improve later         |
| Low         | High          | Monitor for future relevance     |

### Track Metrics Over Time

Create a spreadsheet to monitor trends and patterns.

| What to Track                               | Why It Matters                         |
| ------------------------------------------- | -------------------------------------- |
| Record key metrics monthly                  | Establish baseline and track progress  |
| Track trends (improving, stable, declining) | Identify which datasets need attention |
| Identify seasonal patterns                  | Plan for predictable usage spikes      |

### Correlate with Business Goals

Align dataset priorities with business needs for maximum value.

| Business Situation      | Dataset Focus                            |
| ----------------------- | ---------------------------------------- |
| Launching new product   | Ensure product docs dataset is excellent |
| Customer support issues | Focus on support articles dataset        |
| Onboarding problems     | Improve getting-started dataset          |
| Feature adoption low    | Enhance feature documentation dataset    |

### Re-embed Periodically

Every 6-12 months, refresh your embeddings to maintain quality.

| Action                                         | Benefit                                          |
| ---------------------------------------------- | ------------------------------------------------ |
| Re-embed datasets with latest embedding models | Newer models often improve retrieval quality     |
| Track if average relevance increases           | Measure ROI of re-embedding effort               |
| Compare before/after metrics                   | Validate improvement and inform future decisions |

## Next Steps

<CardGroup cols={2}>
  <Card title="Document Usage" icon="file" href="/v0/data-insights/see-what-data-is-used">
    Drill down into individual documents
  </Card>

  <Card title="Data Lineage" icon="tag" href="/v0/core-concepts/data-lineage">
    Track which source files are most valuable
  </Card>

  <Card title="Add Data Sources" icon="arrows-rotate" href="/v0/setup/add-data-sources">
    Keep datasets up to date
  </Card>

  <Card title="Debugging RAG" icon="magnifying-glass" href="/v0/debugging/understand-retrieval-quality">
    Use dataset metrics to improve RAG
  </Card>
</CardGroup>
