Knowledge base: documents
Your agent answers customers using your materials: question–answer pairs and documents — product descriptions, catalogs, policies, instructions. The better the agent can "see" how a document is organized — sections, tables, column headers — the more accurate its answers. That is why Smokva does not simply pull plain text out of a file: it turns the document into a structured form and shows you the result before saving.
What you can upload
| Format | What is kept |
|---|---|
| DOCX (Word) | Headings (the "Heading 1–6" and "Title" styles), lists and tables — in the same order as in the document |
| XLSX (Excel) | Each sheet becomes its own section named after the sheet; the first row of the sheet is the table header |
| CSV | A table; the delimiter (comma, semicolon, tab) is detected automatically |
| Page text. A PDF has no structure (headings, tables), and scans without a text layer are not recognized yet | |
| TXT, MD | Text as is; Markdown headings (#, ##…) are respected |
File size is up to 10 MB. The old .doc and .xls formats are not accepted — open the file in Word or Excel and save it as .docx / .xlsx.
Tables with prices and stock levels (price lists with SKUs, prices, quantities) are not loaded into the knowledge base: the agent takes prices from exact sources, not from text. If a file looks like such a price list, Smokva tells you so at upload. Price lists have their own "Tables" tab (if it is enabled for your account): the agent searches it row by row and quotes exact prices; see the page "Tables and price lists".
How to upload
-
Open Agents → Knowledge, pick a base and the "Documents" tab.
-
Click "Upload" or drag files into the dashed area. You can pick several files at once.
The Upload button above the document list -
A preview window opens — see the next section.
-
Click "Save": the document is queued for indexing; its status in the list goes "Indexing", then "Ready".
Preview: how Smokva read the file
Preview before saving
The window takes up 80% of the screen. In it you see how Smokva read your file: section names, tables with headers, lists. The window is view-only — you cannot edit text in it; if the result is not what you wanted, fix the source file and upload it again.
- Close the window with the cross in the top-right corner, the Esc key, or a click on the dimmed background — this is the same as "Cancel": the file is not saved.
- If you picked several files, the windows open one by one; "Cancel" skips one file and the others continue.
- If the document is very long, a note at the bottom says "Showing the start of the document — the whole text will be indexed": the screen shows the beginning, the base receives everything.
- If the file could not be read, a clear message appears instead of the text and the "Save" button is disabled.
How a document is split into pieces
The agent looks for an answer not across the whole file but among small pieces. When splitting, Smokva takes the structure into account:
- every piece gets the section path added — for example, "Manual > Installation". The agent understands which part of the document a piece of text belongs to;
- a table stays its own piece, and for a long table the header is repeated in each part — a row never loses its link to the column names;
- completely empty table columns are dropped.
Download the original
The uploaded file is stored as is. To get it back: in the document list click "⋯" in the "Actions" column → "Download original". The file arrives under its original name.
This item exists only for documents uploaded with the "Upload" button or by drag-and-drop after this capability appeared. Earlier documents, and documents added by link, have no original — and no menu item.
Members with the knowledge-management permission can upload documents; anyone who can see the base can download the original.
Tips for more accurate answers
- In Word, format sections with heading styles, not just larger bold text — only styles count as headings.
- In Excel, keep the header in the first row of the sheet and give sheets meaningful names: the sheet name becomes the section name.
- One file — one topic. Long "everything" compilations are better split up.
- Check the preview: if a table "slipped" or a section disappeared, fix the source file.
If something went wrong
| Message | What it means and what to do |
|---|---|
| File is larger than 10 MB — compress or split it | Split the file into parts |
| Format … is not supported | Allowed: txt, md, csv, pdf, docx, xlsx; for .doc/.xls — re-save |
| The file is damaged or is not a DOCX / XLSX document | Open it in Word/Excel and re-save; make sure it is not a renamed file of another format |
| The CSV could not be parsed | Check the file: a field that is too long, or damaged data |
| The document is too large after conversion | Split the file into parts |
| Conversion took too long | The file is too complex — simplify or split it |
| The file contains structured tabular data (prices/stock) | Such tables are not loaded into "Documents": use the "Tables" tab (page "Tables and price lists") |
| Document status "Error" | The reason is written in the document row; fix the file and upload again; if the cause was temporary, the "⋯" menu has a "Reindex" item |