AI Demos Research — the structured-intelligence platform. Every verdict on these pages opens to the execution behind it.
Graded 20 November 2026

Can Brave Search API find the intended subject when a more famous one shares its name?

Brave Search API returned results about the Loki the question meant, Grafana Labs' log aggregation system, and none about the more famous Marvel character. Every one of its ten ranked results also names the compactor block, the configuration block the question asked about.

1 of 1 test case passed

Every test case in this scenario has a result.

Pass rate100%1 of 1 gradable
Coverage1 of 1test case with a result
1PassDid everything it was expected to do.
0FailNo test case failed.
0Not gradableEvery result here could be graded.
0UntestedEvery test case in this scenario has a result.
The pass rate is a summary. The evidence is the test case below: what we sent, what we checked, what the tool returned, and the proof.

The test case

Each test case is judged on its own: Pass, Fail, Not gradable, or Untested. The scenario result above is based on this test case.

Something more famous has the same namePassEvidence
What we sent

“In Loki, the log aggregation system from Grafana Labs, which configuration block does retention_enabled have to be set in for old log data to actually be deleted?”

What the tool returned

Copied from Captured file (JSON), results · an excerpt

  1. https://grafana.com/docs/loki/latest/operations/storage/retention/
    … [299 characters earlier in the file]
    
    ## Compactor
    ### Retention Configuration
    ```yaml
    compactor:
      working_directory: /data/retention
      compaction_interval: 10m
      retention_enabled: true
    ```
    
    … [1,779 characters later in the file]
  2. https://github.com/grafana/loki/blob/main/docs/sources/operations/storage/retention.md
  3. https://stackoverflow.com/questions/73138278/why-my-loki-log-retention-is-not-working
  4. https://grafana.com/docs/loki/latest/operations/storage/logs-deletion/
  5. https://grafana.com/docs/loki/latest/
    … [216 characters earlier in the file]
    
    - retention\_enabled: true must be set under the compactor block, not just in limits\_config.
    
    … [960 characters later in the file]
  6. https://oneuptime.com/blog/post/2026-01-30-loki-retention-strategies/view
  7. https://www.reddit.com/r/grafana/comments/vf48rx/logs_being_deleted_from_loki/
  8. https://medium.com/@aditya.hilman_10961/enabling-log-retention-in-loki-with-compactor-fe3de2002b47
  9. https://community.grafana.com/t/how-to-set-up-log-retention-correctly/156719
  10. https://www.compilenrun.com/docs/observability/loki/advanced-features/log-retention/
Show as JSON
JSON
[
  {
    "rank": 1,
    "url": "https://grafana.com/docs/loki/latest/operations/storage/retention/",
    "title": "Log retention",
    "content": "… [299 characters earlier in the file]\n\n## Compactor\n### Retention Configuration\n```yaml\ncompactor:\n  working_directory: /data/retention\n  compaction_interval: 10m\n  retention_enabled: true\n```\n\n… [1,779 characters later in the file]",
    "content_chars": 2227,
    "published_date": "2023-04-12"
  },
  {
    "rank": 2,
    "url": "https://github.com/grafana/loki/blob/main/docs/sources/operations/storage/retention.md",
    "title": "loki/docs/sources/operations/storage/retention.md at main · grafana/loki",
    "content": "[2,167 characters in the file]",
    "content_chars": 2167,
    "published_date": null
  },
  {
    "rank": 3,
    "url": "https://stackoverflow.com/questions/73138278/why-my-loki-log-retention-is-not-working",
    "title": "purge - why my Loki log retention is not working? - Stack Overflow",
    "content": "[2,360 characters in the file]",
    "content_chars": 2360,
    "published_date": "2022-07-27"
  },
  {
    "rank": 4,
    "url": "https://grafana.com/docs/loki/latest/operations/storage/logs-deletion/",
    "title": "Log entry deletion",
    "content": "[2,016 characters in the file]",
    "content_chars": 2016,
    "published_date": "2022-11-02"
  },
  {
    "rank": 5,
    "url": "https://grafana.com/docs/loki/latest/",
    "title": "Grafana Loki",
    "content": "… [216 characters earlier in the file]\n\n- retention\\_enabled: true must be set under the compactor block, not just in limits\\_config.\n\n… [960 characters later in the file]",
    "content_chars": 1269,
    "published_date": "2022-06-23"
  },
  {
    "rank": 6,
    "url": "https://oneuptime.com/blog/post/2026-01-30-loki-retention-strategies/view",
    "title": "How to Implement Loki Retention Strategies",
    "content": "[4,602 characters in the file]",
    "content_chars": 4602,
    "published_date": "2026-01-30"
  },
  {
    "rank": 7,
    "url": "https://www.reddit.com/r/grafana/comments/vf48rx/logs_being_deleted_from_loki/",
    "title": "r/grafana on Reddit: Logs being deleted from Loki?",
    "content": "[1,579 characters in the file]",
    "content_chars": 1579,
    "published_date": "2022-06-18"
  },
  {
    "rank": 8,
    "url": "https://medium.com/@aditya.hilman_10961/enabling-log-retention-in-loki-with-compactor-fe3de2002b47",
    "title": "Enabling Log Retention in Loki with Compactor",
    "content": "[1,316 characters in the file]",
    "content_chars": 1316,
    "published_date": "2024-12-03"
  },
  {
    "rank": 9,
    "url": "https://community.grafana.com/t/how-to-set-up-log-retention-correctly/156719",
    "title": "How to set up log retention correctly? - Grafana Loki - Grafana Labs Community Forums",
    "content": "[999 characters in the file]",
    "content_chars": 999,
    "published_date": "2025-08-25"
  },
  {
    "rank": 10,
    "url": "https://www.compilenrun.com/docs/observability/loki/advanced-features/log-retention/",
    "title": "Log Retention",
    "content": "[2,285 characters in the file]",
    "content_chars": 2285,
    "published_date": null
  }
]

Excerpt ends here. Open the source for the complete output.

Copied from Captured file (JSON), results 1 › content

Text
# Log retention
Retention in Grafana Loki is achieved through the Compactor. By default the compactor.retention-enabled flag is not set, so the logs sent to Loki live forever.

If you have a lifecycle policy configured on the object store, please ensure that it is longer than the retention period.
## Compactor
### Retention Configuration
```yaml
compactor:
  working_directory: /data/retention
  compaction_interval: 10m
  retention_enabled: true
  retention_delete_delay: 2h
  retention_delete_worker_count: 150
  delete_request_store: gcs
schema_config:
  configs:
    - from: "2020-07-31"
      index:
        period: 24h
        prefix: index_
      object_store: gcs
      schema: v13
      store: tsdb
storage_config:
  tsdb_shipper:
    active_index_directory: /data/index
    cache_location: /data/index_cache
  gcs:
    bucket_name: loki
```
Retention is only available if the index period is 24h. Single store TSDB and single store BoltDB require 24h index period.

retention_enabled should be set to true. Without this, the Compactor will only compact tables.

delete_request_store should be set to configure the store for delete requests. This is required when retention is enabled.

working_directory is the directory where marked chunks and temporary tables will be saved.
## Table Manager (deprecated)
In order to enable the retention support, the Table Manager needs to be configured to enable deletions and a retention period. Please refer to the table_manager section of the Loki configuration reference for all available options. Alternatively, the table-manager.retention-period and table-manager.retention-deletes-enabled command line flags can be used.
## Example Configuration
```yaml
schema_config:
  configs:
    - from: 2018-04-15
      store: tsdb
      object_store: gcs
      schema: v13
      index:
        prefix: loki_index_
        period: 24h

storage_config:
  tsdb_shipper:
    active_index_directory: /loki/index
    cache_location: /loki/index_cache
  gcs:
    bucket_name: GCS_BUCKET_NAME

limits_config:
  max_query_lookback: 672h # 28 days
  retention_period: 672h   # 28 days

compactor:
  working_directory: /data/retention
  delete_request_store: gcs
  retention_enabled: true
```

Copied from Captured file (JSON), results 5 › content

Text
# Grafana Loki
## Grafana Loki, frequently asked questions
### Why isn’t my log retention policy deleting old data?
Retention in Loki is handled by the **Compactor**, not by the ingester or storage backend directly.
- retention\_enabled: true must be set under the compactor block, not just in limits\_config.
- The Compactor must be running. In monolithic deployments it is sometimes inadvertently disabled.
- Deletion is not immediate. The Compactor runs on a schedule and only marks chunks for deletion after a configurable grace period (retention\_delete\_delay).
- When using filesystem storage, the chunks directory size may not visibly decrease right away. The Compactor marks files for deletion first, then removes them on subsequent runs.
**Minimum required configuration:**

YAML Copy code to clipboard Copy

```yaml
compactor:
  working_directory: /data/loki/compactor
  retention_enabled: true
  delete_request_store: <your-object-store>

limits_config:
  retention_period: 360h
```
To verify the Compactor is running and retention is active, check the Loki logs for lines referencing compactor and look for the metrics loki_boltdb_shipper_compact_tables_operation_total (compaction runs) and loki_compactor_apply_retention_operation_total (retention runs).

Copied from Captured file (JSON), raw_response · an excerpt

JSON
{
  "grounding": {
    "generic": [
      {
        "url": "https://grafana.com/docs/loki/latest/operations/storage/retention/",
        "title": "Log retention",
        "snippets": "[… 5 items in the file]"
      },
      {
        "url": "https://github.com/grafana/loki/blob/main/docs/sources/operations/storage/retention.md",
        "title": "loki/docs/sources/operations/storage/retention.md at main · grafana/loki",
        "snippets": "[… 5 items in the file]"
      },
      {
        "url": "https://stackoverflow.com/questions/73138278/why-my-loki-log-retention-is-not-working",
        "title": "purge - why my Loki log retention is not working? - Stack Overflow",
        "snippets": "[… 6 items in the file]"
      },
      {
        "url": "https://grafana.com/docs/loki/latest/operations/storage/logs-deletion/",
        "title": "Log entry deletion",
        "snippets": "[… 5 items in the file]"
      },
      {
        "url": "https://grafana.com/docs/loki/latest/",
        "title": "Grafana Loki",
        "snippets": "[… 5 items in the file]"
      },
      {
        "url": "https://oneuptime.com/blog/post/2026-01-30-loki-retention-strategies/view",
        "title": "How to Implement Loki Retention Strategies",
        "snippets": "[… 7 items in the file]"
      },
      {
        "url": "https://www.reddit.com/r/grafana/comments/vf48rx/logs_being_deleted_from_loki/",
        "title": "r/grafana on Reddit: Logs being deleted from Loki?",
        "snippets": "[… 5 items in the file]"
      },
      {
        "url": "https://medium.com/@aditya.hilman_10961/enabling-log-retention-in-loki-with-compactor-fe3de2002b47",
        "title": "Enabling Log Retention in Loki with Compactor",
        "snippets": "[… 5 items in the file]"
      },
      {
        "url": "https://community.grafana.com/t/how-to-set-up-log-retention-correctly/156719",
        "title": "How to set up log retention correctly? - Grafana Loki - Grafana Labs Community Forums",
        "snippets": "[… 3 items in the file]"
      },
      {
        "url": "https://www.compilenrun.com/docs/observability/loki/advanced-features/log-retention/",
        "title": "Log Retention",
        "snippets": "[… 5 items in the file]"
      }
    ],
    "map": []
  },
  "sources": {
    "https://grafana.com/docs/loki/latest/operations/storage/retention/": {
      "title": "Log retention",
      "hostname": "grafana.com",
      "age": ["Wednesday, April 12, 2023", "2023-04-12", "1266 days ago", "2023-04-12T00:00:00Z"],
      "snippet": "on the object store TTL feature, and will work for both boltdb-shipper store and chunk/index stores. In order to enable the retention support, the Table Manager needs to be configured to enable deletions and a retention period."
    },
    "https://github.com/grafana/loki/blob/main/docs/sources/operations/storage/retention.md": {
      "title": "loki/docs/sources/operations/storage/retention.md at main · grafana/loki",
      "hostname": "github.com",
      "age": [],
      "snippet": "a short window of time in which to cancel chunk deletion in the case of a configuration mistake. By default, marker files are written to local disk, under <working_directory>/retention/<object_store_type>_<period_from_date>/markers/. Marker ..."
    },
    "https://stackoverflow.com/questions/73138278/why-my-loki-log-retention-is-not-working": {
      "title": "purge - why my Loki log retention is not working? - Stack Overflow",
      "hostname": "stackoverflow.com",
      "age": ["Wednesday, July 27, 2022", "2022-07-27", "1525 days ago", "2022-07-27T00:00:00Z"],
      "snippet": "Actually, My goal is to deleted logs which are older than 12h, it should be deleted from grafana dashboard as well as from server storage because I m facing storage issues as my log are not deleting, and occupying huge space in server storage ..."
    },
    "https://grafana.com/docs/loki/latest/operations/storage/logs-deletion/": {
      "title": "Log entry deletion",
      "hostname": "grafana.com",
      "age": ["Wednesday, November 02, 2022", "2022-11-02", "1427 days ago", "2022-11-02T00:00:00Z"],
      "snippet": "Enable log entry deletion by setting retention_enabled to true in the compactor’s configuration (-compactor.retention-enabled on the command line). The tenant’s deletion_mode must also be filter-only or filter-and-delete, which is the case ..."
    },
    "https://grafana.com/docs/loki/latest/": {
      "title": "Grafana Loki",
      "hostname": "grafana.com",
      "age": ["Thursday, June 23, 2022", "2022-06-23", "1559 days ago", "2022-06-23T00:00:00Z"],
      "snippet": "Retention in Loki is handled by the Compactor, not by the ingester or storage backend directly. A few common reasons why old data persists even after configuring a retention period: retention_enabled: true must be set under the compactor block, ..."
    },
    "https://oneuptime.com/blog/post/2026-01-30-loki-retention-strategies/view": {
      "title": "How to Implement Loki Retention Strategies",
      "hostname": "oneuptime.com",
      "age": ["Friday, January 30, 2026", "2026-01-30", "242 days ago", "2026-01-30T00:00:00Z"],
      "snippet": "Managing log retention in Grafana Loki requires understanding how Loki stores data and which components handle deletion. Unlike traditional databases where you simply set a TTL, Loki's architecture involves chunks, indexes, and a compactor service ..."
    },
    "https://www.reddit.com/r/grafana/comments/vf48rx/logs_being_deleted_from_loki/": {
      "title": "r/grafana on Reddit: Logs being deleted from Loki?",
      "hostname": "www.reddit.com",
      "age": ["Saturday, June 18, 2022", "2022-06-18", "1563 days ago", "2022-06-18T16:12:35Z"],
      "snippet": "<h1 class=\"text-24-scalable xs:text-20-scalable\" dir=\"auto\">Solved<p dir=\"auto\"> This issue has been resolved. Reason: PEBCAK (usage or instant query type as opposed to Range) <h1 class=\"text-24-scalable xs:text-20-scalable\" dir=\"auto\">Original<p ..."
    },
    "https://medium.com/@aditya.hilman_10961/enabling-log-retention-in-loki-with-compactor-fe3de2002b47": {
      "title": "Enabling Log Retention in Loki with Compactor",
      "hostname": "medium.com",
      "age": ["Tuesday, December 03, 2024", "2024-12-03", "665 days ago", "2024-12-03T10:18:49Z"],
      "snippet": "Efficient log management is essential as Kubernetes workloads grow in complexity. In a previous guide, we explored how to centralize logs using Loki, Promtail, and Grafana. But once logs start accumulating, controlling their retention becomes ..."
    },
    "https://community.grafana.com/t/how-to-set-up-log-retention-correctly/156719": {
      "title": "How to set up log retention correctly? - Grafana Loki - Grafana Labs Community Forums",
      "hostname": "community.grafana.com",
      "age": ["Monday, August 25, 2025", "2025-08-25", "400 days ago", "2025-08-25T11:52:40Z"],
      "snippet": "I am trying to configure automatic log deletion and expect that space will be automatically freed in the chunks bucket on MinIO. However, with the settings I have applied, this does not happen."
    },
    "https://www.compilenrun.com/docs/observability/loki/advanced-features/log-retention/": {
      "title": "Log Retention",
      "hostname": "www.compilenrun.com",
      "age": [],
      "snippet": "Loki's approach to log retention is centered around the concept of \"chunks\" - compressed batches of log data that are stored and managed together. Log retention in Loki involves deciding when these chunks should be deleted or moved to different ..."
    }
  }
}

Excerpt ends here. Open the source for the complete output.

API response: the ten ranked results Brave returned for the question

Open the whole JSON file ↗
Expected vs. Found
✓Expected: Results about Grafana Loki, not the Marvel character, that name the compactor block as the place where retention must be enabled.Found: All ten concern Grafana Loki, none the Marvel character, and name the compactor block. Grafana's retention page (rank 1) shows retention enabled there; Loki's documentation homepage (rank 5) requires it there, not just in the limits configuration.
Supporting proof
Cited values2 values from this file
query_text
In Loki, the log aggregation system from Grafana Labs, which configuration block does retention_enabled have to be set in for old log data to actually be deleted?
mode
llm_context
Why this result

The results had to be about the Loki the question meant, and the question named Grafana Labs' log aggregation system, which is not true of the Marvel character. Nothing returned is about the Marvel namesake, and every result names the compactor block.

Also observed in this test case

Specific pages first. The results led with the Loki retention documentation at rank 1 and other retention-specific pages; the general Loki docs home appeared at rank 5, and the Grafana Loki product page did not appear.

Tested by Aman · evidence dated 29 September 2026

Configuration and setup

How this tool was set up for the run and what the test needed in place. Each row is a fact from the run's records; a fact the records do not hold is left out, not guessed.

Software that produced the output
Brave Search API
Build or version
Not exposed by the hosted product
Surface
API
Set up before the run
The question asked about Loki, the log aggregation system from Grafana Labs, which shares its name with Marvel's far more famous Loki; naming Grafana Labs is true only of the less famous one.
Endpoint
LLM Context API via GET
Tested
29 September 2026 · Aman

How this scenario is graded

How we decide Pass, Fail and Not gradable. The same rules apply to every tool tested on this scenario.

How results are decided

Each test case gets one result per tool: Pass, Fail or Not gradable. A test case we haven't run yet shows Untested. There are no partial results.

The rules
  • Pass: the tool did everything the test expected, and nothing it said contradicts the correct answer.
  • Fail: at least one expected behaviour clearly didn't happen; the test case's result says which one and quotes the tool.
  • Not gradable: our evidence couldn't settle the outcome (for example a record we needed is missing). It is never counted as a fail, and the test case's result says what's missing.

Where this sits in the benchmark

This page is one cell of a larger study: one tool, one scenario. Only this benchmark's frame appears here.

LevelNameScope
BenchmarkWeb Search for AI →10 scenarios · 12 tools
CapabilityWeb Retrieval →
ScenarioSomething more famous has the same name →
ToolBrave Search API →

History of this result

What has happened to this result since it was first published. Runs and grades are never overwritten: a retest or a re-grade publishes a new result and keeps the earlier one readable.

from the publication record
23 November 2026First publishedWeb Search for AI v1

Act on this result

Nothing filed here edits the run or the grade. A challenge opens a review, and a review can produce a new run or a re-grade — which becomes the current result and leaves this one in the history.

This matches what I see

You run the same kind of test against your own setup and get the same behaviour.

Agree →
This does not match

Yours behaves differently. Tell us what you got, with a screenshot if you have one.

Disagree →
Point out an issue

Something here is wrong — a reference value, a transcription, a grade.

Report an issue →
Request a retest

On a newer build, a larger dataset, or your own setup.

Request a retest →
We have fixed this

Tell us what changed and we schedule a rerun of the failing test case. The old result stays as history.

Vendor notice →
Filed against this evidenceNothing yet. Challenges, counter-evidence and fix notices appear here with their outcome, and stay on the page after they are resolved.
Cite this result
aidemos.com/benchmarks/web-search-for-ai/results/brave-search-api/name-disambiguation · 1 pass · 0 fail · coverage 1/1 · graded 2026-11-20

The same record is available as structured data through the AI Demos MCP server, with the counts, the coverage and every per-test-case reason carried as fields.

Verify the proof files

These files support this result. Open a file to inspect the original evidence.

Captured file (JSON) ↗application/json · 55 KB
File fingerprints (SHA-256)

A fingerprint identifies the exact file used for this result.

Captured file (JSON)1ddf7c97bde8d3d26dbd845c2caa38c0c9b3b8b4f9c2bea4790d7cbddd98b184