Skip to main content
GET
/
api
/
v2
/
rag
/
chunks
Search document chunks (v2)
curl --request GET \
  --url https://rest-api.captide.co/api/v2/rag/chunks \
  --header 'X-API-Key: <api-key>'
{
  "relevantChunks": [
    {
      "pageNumber": 2,
      "documentMetadata": {
        "id": "2dfd0c2a-fb6d-486a-ad62-3b1830eb30bf",
        "title": "ASML 2024 Annual Report",
        "documentCategory": "annual-financial-report",
        "date": "2024-12-31",
        "fiscalQuarter": 4,
        "fiscalYear": 2024,
        "companyName": "ASML HOLDING NV",
        "tickers": [
          "ASML",
          "ASML.AS"
        ]
      }
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Query Parameters

query
string
required

The natural language query

Minimum string length: 1

Response

Chunks found successfully

Response model for chunk search results.

relevantChunks
Chunk · object[]
required

List of relevant document chunks