Library
The library is in the Services Configuration › Library menu.
The Common documents page manages the common library of the library service: “Regulations and guidelines of the common library, which every tenant reads and the chat searches.”. The tenants’ own documents are not listed there.
Documents reach the common library in two ways: those the crawler finds at the regulators, and those an administrator adds here.
Like the whole console, the page is for platform administrators only; the library and subscription themselves check that the caller is one.
The page has three tabs: Documents, Upload and Search index.
A document’s path
A library document goes through these steps, which the Status column of the Documents tab shows:
| Status | What happens |
|---|---|
| Queued | The document waits its turn in docling’s queue. |
| Converting | docling converts it to Markdown. |
| Markdown to validate | docling produced a Markdown, which an administrator must read and validate. |
| No Markdown | The conversion produced no Markdown. |
| Embedding | The library cuts the document into passages and embeds them for the chat. |
| Embedded | The chat can find the document by meaning. |
| Embedding failed | The embedding failed. |
A document is embedded for the chat only once its Markdown is validated, or, when docling produced none, once the embedding of its plain text is asked for. docling’s queue itself is followed in the crawler’s Docling tab.
Documents
The Documents tab shows the chat’s embeddings at the top, then the list of common documents.
Embeddings for the chat
“Each document is cut into passages and embedded, so the chat can find them by meaning. Library embeds only on request, each embedding costing model tokens.”
The block counts the documents embedded out of the total, in progress, failed, not embedded yet, and those cut with an older passage size. It lists the failures, with their error.
Three buttons start an embedding in the background, each after a confirmation that recalls the token cost:
- Embed n documents: those never embedded or whose embedding failed;
- Re-embed the n outdated documents (shown when there are any): those cut with an older passage size, cut again at the current size;
- Re-embed all common documents.
These buttons are only active once the library has said no embedding is in progress, and when embeddings are on in the environment; otherwise the block reads “Embeddings are off in this environment.”. During an embedding, a progress bar shows.
The list of documents
The filters are:
- Filter by title or file name;
- the status (Any status by default);
- To validate (n): the documents whose Markdown awaits a validation;
- Older passages (n) (shown when there are any): the documents embedded with an older passage size.
The columns are Title, File, Published, Status and Chat; the first four sort the list. The Chat column shows Embedded, Not embedded, or Embedded · older passages, the tooltip then giving the original passage size.
After ticking rows:
- Delete selected (n);
- Validate selected (n): only the documents whose Markdown awaits a validation are sent; the others are left out, and the message says so.
Relaunch docling on documents without Markdown (n) queues every No Markdown document again, after a confirmation: docling converts them one after the other, which can take a long time, and files it cannot read are left out.
The list updates live when a common document changes, and is read again every 30 seconds while documents are queued, converting or embedding.
Actions on a document
Each row offers, depending on the document’s status:
- Preview: opens the Markdown docling produced, rendered or as source (Show the Markdown source / Show the rendering). If the conversion is still running, or produced nothing, the preview says so. The bottom of the preview offers Relaunch docling, Embed the plain text and Validate;
- Validate (status Markdown to validate): the library embeds the document from its Markdown;
- Embed the plain text (status No Markdown): the library embeds the file’s plain text;
- Relaunch, a menu of three actions:
- Relaunch docling: not possible while the document is queued or converting. The current Markdown is replaced, and the new one must be validated; a confirmation says so, except for a document without Markdown;
- Relaunch indexing: the library reads the file again and puts it back in the search index; not possible while the document is queued, converting or embedding;
- Relaunch embedding: for an Embedded or Embedding failed document;
- Delete.
Deleting cannot be undone and affects every tenant: “Delete « name » from the common library? Every tenant loses it, and it cannot be undone.”. The document leaves the library and the chat.
Upload
The Upload tab adds documents to the common library: “Library indexes them in the background.”.
Upload files
Drag files into the area, or click browse your computer. Accepted: .pdf, .doc, .docx, .odt, .txt, up to 50 MB each, each name once.
Each file shows with its Format and its Status: Ready, Unsupported format, Too large or Duplicate. Refused files are not sent; a bin removes a file from the list.
Index from the web
The Document URLs, one per line field takes the addresses of pages or PDFs; the library downloads each one and indexes it. Blank lines are ignored; a line that is not an http(s) URL (Not an http(s) URL) or repeats another (Duplicate) is left out.
Send
The bottom bar counts the files and URLs ready; Send to the common library (n) sends them. A progress bar follows each file.
Then the page says how many documents went, and offers Add more documents and Go to the crawler. Failed sends stay listed, with their reason, and Retry sends them again; the others are already sent.
Files go straight to the library: a file marked Sent is in its hands. URLs go through subscription, which hands them to the library over Kafka: a URL sent is in the message broker’s hands, and the library downloads it afterwards. See Events and calls.
Search index
“If library searches miss documents the library holds, rebuild its search index from the database. It covers the common and the custom documents.”
Rebuild the search index asks for a confirmation: “Library re-reads every common and custom document. It can take several minutes, and searches may miss documents until it finishes.”.
During the rebuild, the page shows “Rebuilding: counting the documents…”, then how many documents are done out of the total, with a progress bar. Once finished, it gives the date of the last rebuild and how many documents were indexed, or why it failed. The library refuses a second rebuild while one runs.