ClouisleClouisle

Browsing Documents & Metadata

View knowledge base documents, system fields, extracted metadata, and sharing origin

In Knowledge Bases, select a knowledge base to browse its document list: search by name, filter by status (pending/processing/completed/error) or type, and open a document to inspect its chunks and metadata. Knowledge bases shared into your team carry an origin badge and are read-only throughout.

Document list and filters

The document list endpoint supports three filter dimensions, usable together:

ParameterTypeNotes
searchstringFuzzy match on the document name
statusstring arraypending, processing, completed, error
doc_typestring arraypdf, docx, doc, pptx, txt, markdown, html, csv, xlsx, xls, json, url
page / page_sizeintegerDefaults 1 / 20

The UI status and type filters are single-select, but the endpoint accepts arrays — scripts can filter on several statuses or types at once.

Document system fields

FieldNotes
nameDocument name (the filename by default; URL imports may set a custom name)
doc_typeDocument type: pdf, docx, doc, pptx, txt, markdown, html, csv, xlsx, xls, json, url
file_sizeFile size in bytes; empty for URL documents
file_pathWhether the file is stored server-side (empty for URL documents)
source_urlOrigin URL (URL documents only)
statuspending, processing, completed, error
error_messageFailure reason (error status only)
chunk_countNumber of chunks generated
token_countEstimated token count (sum of chunk characters ÷ 4)
metadataAutomatically extracted JSON metadata (see below)
processed_atWhen processing completed
created_at / updated_atTimestamps

Extracted metadata

metadata is a JSON object written by the processing pipeline during text extraction. It is not editable field by field and is regenerated on reprocessing. Common keys:

  • format: markdown means the content was converted to Markdown by the document converter (PDF/Office/HTML take this path).
  • char_count: character count of the cleaned text.
  • file_size, doc_type: file information captured during extraction.
  • media_assets: the list of embedded images that were extracted from the document (images are served through the document media endpoint).

Chunks carry their own metadata as well:

  • section: the heading breadcrumb of a Markdown document (for example Chapter 1 > Section 2), telling you which section a chunk came from.
  • chunk_type: table, code, list, or text (written only when it is not text).

This metadata is returned with search results and RAG context, so answers can cite their source.

What the document detail page does

ActionNotesPermission
Preview / edit chunksInspect, modify, and delete chunks; tune settings and process an unprocessed documentWrite
Retry failed chunksAvailable only when status is error and failed chunks existWrite
ReprocessDeletes old chunks and vectors, then re-runs with new settings (manual edits are lost)Write
Download originalDownloads the uploaded file (URL documents have no original)Read
View source URLOpens the origin address of a URL documentRead
DeleteDeletes the document and its chunksWrite

A knowledge base shared into your team (is_owned = false) is marked read-only in the UI: upload, import, edit, and delete entry points are hidden or disabled.

Sharing origin and sharing scope

Two badges in the list and detail page tell ownership apart:

BadgeShown whenMeaning
From {team} (sharedFrom)is_owned = falseThe knowledge base belongs to another team and is shared with yours; read-only, with all write actions and settings entry points unavailable
Shared with {N} teams (sharedCount)is_owned ≠ false and shared_with_count > 0Your team owns it and has shared it with N other teams

The list endpoint's include_shared and own_only decide whether shared-in knowledge bases appear:

RequestResult
Default (include_shared=true, own_only=false)Includes TEAM/PUBLIC knowledge bases shared into your teams
include_shared=false or own_only=trueReturns only the knowledge bases you can normally see (your own teams); shared-in ones are dropped
own_only=true (non-superuser)On top of the previous rule, limits to created_by = current user

For the cross-team sharing steps, read-only semantics, and how to revoke, see Create a Knowledge Base (the sharing section).

Editing documents

The only editable document field is the name (the frontend currently offers no rename action, so use the API). Knowledge base endpoints accept a JWT user session only, never an API key:

curl -X PUT "https://your-domain.com/api/v1/knowledge-bases/$KB_ID/documents/$DOC_ID" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Employee Handbook (2026)"}'

metadata is regenerated during reprocessing and there is no dedicated metadata editing endpoint; tags, categories, and folders are not implemented either.

Usage in retrieval

  • Search results and RAG context carry each chunk's metadata, used to cite the source.
  • Search requests do not support metadata-based filtering or boosting — the only search filter is filter_doc_ids (restrict results to specific document IDs).
  • Images inside chunk content are served through the document media endpoint (/api/v1/knowledge-bases/{kb_id}/documents/{doc_id}/media/{filename}) and require an authenticated request.

How is this guide?

On this page