Up to 7.2× the speed of standard llama.cpp Runs 100% on your PC
Free for personal use
Download free
Local API Guide/Endpoints/Knowledge documents

Knowledge documents

GET/v1/knowledge/documents
Free: not countedBase URL http://localhost:1234/v1
Local API Guide contents

Overview

Lists the documents on the Knowledge page, with their status. A document can be searched once its status is ready. Documents are added in the app (drag and drop, or Add files).

Request

ParameterDescription
collectionquery stringOptional: a collection name or id (c:3). Default: every collection.
Authorization headerAuthorization: Bearer <key>, only when Require API key is on in the app.

Response

FieldDescription
data[].idintegerThe document id (also in knowledge sources as document_id).
data[].name, kindstringThe file name and its type (pdf, docx, pptx, xlsx, html, md, image, …).
data[].collectionstringThe collection id.
data[].statusstringqueued, indexing, ready or error (with error saying why).
data[].chunks, pages, bytesintegerSearchable passages, pages, and the file size.
data[].addedstringWhen it was added (ISO 8601).

Example

curl "http://localhost:1234/v1/knowledge/documents?collection=Policies"
Response
{
  "object": "list",
  "data": [
    { "id": 41, "name": "Refund policy.pdf", "kind": "pdf", "collection": "c:3", "status": "ready", "error": null,
      "chunks": 18, "pages": 6, "bytes": 182344, "added": "2026-10-12T09:41:07" }
  ]
}

Errors

StatusCodeWhen
401invalid_api_keyRequire API key is on and the key is missing or wrong.
404collection_not_foundNo collection has that name or id.
503knowledge_unavailableThe knowledge database could not be opened.