retrieval

Upload text for retrieval

Changed on

Ingests plain text for managed semantic retrieval. The text is chunked, embedded, and indexed asynchronously; the entry appears in GET /retrieval/entries once indexing finishes.

Required permission: retrieval.manage.

post/v1/projects/{project_id}/retrieval/text

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

Query parameters

environment_id, string uuid required

Environment ID from GET /environments.

Request body

RetrievalTextUploadRequest required
content, string required

Text to index, up to 10,000,000 characters. Upload longer documents as a file or split them into several entries.

namespace, string nullable

Dot-separated namespace such as docs.api, up to 10 levels. Omit for the default namespace.

entry_id, string nullable

Entry identifier. Uploading again with the same ID and namespace replaces the entry. Defaults to a generated UUID.

metadata, object nullable

JSON object stored with every chunk of the entry, up to 64 KB.

Response

Successful Response

PublicRetrievalIngestionResponse required
job_id, string required

ID of the ingestion job that chunks and indexes the content.

status, string required

Job status at submission, pending.

entry_id, string required

Entry the content is stored under. Generated when not supplied.

Changes