Knowledge RAG

Convenience fetch endpoint

post/api/knowledge-rag/fetch

Request

  • Base URL: https://api.cernion.de
  • URL: https://api.cernion.de/api/knowledge-rag/fetch
  • Auth: none declared

Query parameters

tokenstring

Optional Cernion MCP token as URL query parameter. If provided, it overrides CERNION_TOKEN for this request. Prefer Authorization Bearer header in production to reduce token exposure in URLs/logs.

Request body

collectionstring
withPayloadboolean
withVectorsboolean
tokenstring

Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

Example request

{
  "ids": [
    "doc-1:1:abc123def0"
  ],
  "collection": "tenant:stadtwerk-a:knowledge"
}

Response

RAG query result (internal/direct calls only; external callers receive 202)

successboolean

Example response

{
  "success": true,
  "data": {
    "queryType": "semantic",
    "collection": "cernion_knowledge_v1",
    "returned": 2,
    "results": [
      {
        "pointId": "doc-123",
        "score": 0.91,
        "referenceText_L0": "Die Festlegung regelt ...",
        "vectorText": "Welche Regeln gelten für ...",
        "metadata": {
          "title": "BK6-24-xxx",
          "docType": "Festlegung",
          "authority": "BNetzA",
          "status": "gültig"
        }
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.