Retrieval

Querying

CoreCortex's query contract makes retrieval decisions observable and leaves response synthesis to the calling application.

Request

httpCoreCortex Core
POST /v1/corpora/{corpusId}/query
Content-Type: application/json

{
  "query": "What guide applies to the repeated topic on RECORD-104?",
  "retrievalPlan": "topic-investigation",
  "limit": 20
}

Response responsibilities

  • Ranked evidence with source and fragment identity
  • Provenance required to trace a result to the record
  • Retrieval-plan and index-version details for reproducibility
  • Scores and diagnostics suitable for evaluation

Generate an answer after retrieval

Add a response plan when the application needs an answer from the retrieved passages. The Synthesis page owns the configuration and response format.

Use the complete HTTP reference

The API reference covers configuration, ingestion, deletion, corpus state, query, and job operations.

Continue readingModels and processors→