{
  "data": null,
  "kind": "anchor.page",
  "links": {
    "api": "https://www.anchorterminal.com/api/v1/index.json",
    "html": "https://www.anchorterminal.com/niches/vector-search.document-results/",
    "json": "https://www.anchorterminal.com/niches/vector-search.document-results/index.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/niches/vector-search.document-results/index.md",
    "mcp": "https://www.anchorterminal.com/mcp",
    "slim": "https://www.anchorterminal.com/niches/vector-search.document-results/index.min.md"
  },
  "markdown": "Two or three companies' docs show a full fit.\n\n| Companies, full fit | With a limit | Carry the tag | Share of the category's work | First-hand accounts |\n| --- | --- | --- | --- | --- |\n| 2 | 7 | 17 | 8 | 3 |\n\n## What counts as done\n\nResults are grouped by a document field so N distinct documents come back in one call, and page 2 returns the next N with no gaps or repeats. Checked with a fixture of 50 documents of 5 chunks each.\n\nHow agents ask for it: top 10 documents about X; show page 2 of the results; one result per product\n\n## Does the job\n\nThe docs show it meets the test above, and nothing we read says otherwise.\n\n- **Elasticsearch (Elasticsearch B.V.)**: Nested kNN stores one vector per chunk and returns parent documents ranked by their best chunk, with inner_hits for the passages; collapse also keeps one hit per field value.\n- **Meilisearch (Meili SAS)**: A distinct attribute such as a document id returns one chunk per document, with offset and limit for the next page.\n\n## Does the job, with a limit\n\nIt does the job, but something in the docs or a user's account will get in an agent's way. The limit is named in each row.\n\n- **Chroma API + MCP (Chroma Inc.)**: GroupBy on a metadata key with limit and offset exists, but only in the Cloud Search API and only with a ranking expression.\n- **Milvus and Zilliz Cloud API + MCP (Zilliz Inc.)**: group_by_field (for example docId) returns one or group_size hits per document, but paging to the next N groups is not documented on the grouping page.\n- **OpenSearch (OpenSearch Software Foundation, a project of The Linux Foundation)**: Nested k-NN returns parent documents, with k counting documents and inner_hits naming the matching chunks, but paging to the next N documents was not shown.\n- **Qdrant API + MCP (Qdrant Solutions GmbH)**: The Grouping API groups chunk hits by a document field, but page 2 needs the docs' exclusion-filter pattern rather than an offset on groups.\n- **Typesense API + MCP (Typesense, Inc.)**: group_by makes per_page count groups and page walk them, but #2618 reports pages returning fewer documents than requested after mass deletions.\n- **Vespa (Vespa.ai AS)**: The grouping language groups hits by any field, such as a document id, with hits per group, but paging to the next N groups was not confirmed on the page read.\n- **Weaviate API + MCP (Weaviate B.V.)**: Hybrid and vector queries take a group-by on a property with group and per-group limits, but paging to the next N groups is not shown; limit and offset apply to objects.\n\n- not this job: Cloudflare AI Search (Cloudflare, Inc.): No group-by or document-level collapse on search; results are chunks, and no pagination parameter appears in the search reference.\n- not this job: Epsilla Vector Database (Epsilla, Inc.): No group-by on query; record retrieval pages with skip and limit only.\n- not this job: LanceDB (LanceDB Systems, Inc.): No group-by or collapse parameter on vector or hybrid search; only limit and offset.\n- not this job: Pinecone API + MCP (Pinecone Systems Inc.): No group-by and no offset or page token on Documents API search; Drupal maintainers overshoot top_k and slice to fake both.\n- not this job: Upstash Vector API + MCP (Upstash, Inc.): No group-by on query; resumable queries and range page through raw results.\n\n## What stops agents finishing\n\n- no group-by, so the agent overshoots topK and retries\n- no offset or page token on the newer search endpoints\n\n## Around it\n\nBefore: vector-search.rag-over-docs. After: search.search-with-text.\n\n## Where this comes from\n\nWeight 8 of 100 in Retrieval \u0026 vector search: 3 of 37 accounts (Pinecone group-by and pagination from the Drupal maintainer, Typesense pagination after deletions)\n\nAs data: https://www.anchorterminal.com/api/v1/use-cases/vector-search.document-results.json, or the MCP tool get_use_case with id vector-search.document-results. Draft, read 2026-11-15 from public docs and first-hand accounts, not yet reviewed by a person.\n",
  "meta": {
    "attribution": "Anchor Terminal (https://www.anchorterminal.com)",
    "attributionRequired": true,
    "credit": "CC BY 4.0, credit Anchor Terminal and link the page or API address you took it from (https://www.anchorterminal.com/terms/#data)",
    "docs": "https://www.anchorterminal.com/docs/",
    "generatedAt": "2026-11-16",
    "license": "CC-BY-4.0",
    "method": "https://www.anchorterminal.com/benchmark/",
    "methodology": "0.8",
    "openapi": "https://www.anchorterminal.com/openapi.json",
    "preview": false,
    "run": "2026-10-01",
    "runLabel": "October 2026 research run",
    "terms": "https://www.anchorterminal.com/terms/#data"
  },
  "page": {
    "breadcrumbs": [
      {
        "name": "Home",
        "url": "https://www.anchorterminal.com/"
      },
      {
        "name": "For agents",
        "url": "https://www.anchorterminal.com/agents/"
      },
      {
        "name": "Niches",
        "url": "https://www.anchorterminal.com/niches/"
      },
      {
        "name": "Return whole documents and further pages, not a pile of chunks",
        "url": ""
      }
    ],
    "description": "Return whole documents and further pages, not a pile of chunks: 2 companies fully do it, 7 with a limit, 17 carry the tag. Every listing in Retrieval \u0026 vector search with the reason and a source.",
    "facts": null,
    "h1": "Return whole documents and further pages, not a pile of chunks",
    "image": "https://www.anchorterminal.com/assets/og/default.png",
    "path": "/niches/vector-search.document-results/",
    "published": "",
    "section": "agents",
    "title": "Return whole documents and further pages, not a pile of chunks |…",
    "toc": null,
    "updated": "2026-11-15",
    "url": "https://www.anchorterminal.com/niches/vector-search.document-results/"
  },
  "tokens": {
    "markdown": 1150,
    "slim": 280
  },
  "version": 1
}
