Return the cited chunk and its source
The chunk behind a citation, found by its content key, else by its excerpt, with what the reader needs about its source. 404 when the caller cannot see the source, or with reason chunk_missing when neither finds the chunk (the source was edited); 501 with reason unsupported when the vector store cannot look chunks up. Args: source_id: The source the citation names.
Returns:
Response: {"success", "chunk", "source", "page_path"}, or an
error with reason chunk_missing (404) or unsupported
(501) the reader tells apart from a source out of reach.
Personal access token scope: sources:read.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
source_id*stringchunk_key?stringThe citation's chunk_key: the MD5 of the chunk text
excerpt?stringOptional: the start of the cited passage, searched when the key misses
Success
curl -X GET 'http://localhost:7091/api/sources/string/chunk'Deletes a specific chunk from the document DELETE
Deletes a specific chunk from the document. 409 (code source_busy) while a sync or page change on the source runs. [Personal access token](/API/personal-access-tokens) scope: `sources:write`.
Provide JSON file with combined available indexes GET
Provide JSON file with combined available indexes. [Personal access token](/API/personal-access-tokens) scope: `sources:read`.