Skip to main content
A File data source is the part of a knowledge base that holds files you upload yourself, such as policies, price lists or reports. It is the quickest way to give Neural Factory’s AI agents documents to answer from.
Who: the knowledge base’s creator and Admins add the source; anyone who can open the knowledge base can upload to it · Where: Knowledge bases › your knowledge base › a File data source · Works on: Enterprise and SaaS (on SaaS, within your plan’s page allowance)

Create a File data source

1

Open the knowledge base

Go to Knowledge bases and click the knowledge base.
2

Add the source

Click Add Source and choose File. Enter a Data Source Name and a Description, then click Create. Only the knowledge base’s creator and Admins can add sources.

Upload files

1

Open the data source

On the knowledge base page, click the File data source in the Data Sources list.
2

Click Upload

Choose one or more files. Anyone who can open the knowledge base can upload.
3

Wait for processing

Each file appears in the documents list as Processing, then changes to Processed once agents can find it. Most files take a few seconds to a few minutes. See Processing status.
The files are sent one after the other. If one is refused, the files after it are not sent: fix or remove that file and upload the rest again.

Supported file types

The upload refuses any other type, for example a zip archive, a GIF or WebP image, or an older .doc Word file. The message starts with File type ".gif" is not supported and lists the accepted types. Save older Office files in the newer format first.

Scanned documents

A scan is a picture of a page, so its text has to be recognised before agents can search it. This is called OCR (optical character recognition). Neural Factory does it on its own for scanned PDFs and for images. A PDF that contains its own text, such as a file saved from Word, needs no OCR. Its words are kept as written, and its headings, bold text and lists keep their shape. A page with a table or columns is read with its layout, so rows and columns stay in place. Scans and photos go through OCR. Every page is then checked for signs of a poor reading: words the reader was unsure of, words that mix look-alike letters of two alphabets (such as Cyrillic and Latin), garbled characters, or tables that came out incomplete. The text of each page is kept with its page number. Some installations add a second check, sometimes called agentic OCR. A vision model looks again at the pages flagged as doubtful, compares the doubtful words with the page image and corrects them. Incomplete tables are read again. Every correction is checked, and corrections that would make a page worse are rejected. With this check on, charts and diagrams are also written into the page text: a chart as a table of its values with their units, a diagram as its parts and how they connect. Stamps, signatures and photos are described only when the installation is set up for that. Who decides whether the second check is on:
  • Enterprise: your administrator.
  • SaaS: Neural Factory.
If a document cannot be read at all, processing fails and is tried again. After the last attempt the data source shows Error (see When processing fails).

Limits

These limits apply on both deployment types:
A file name must be unique within the whole knowledge base, across all its data sources. Delete the old file first, or rename the new one.
Another upload to your account was being checked against your plan’s pages at the same moment. Upload the file again.
SaaS plans also limit how many pages your knowledge bases hold. A page is one page of a PDF or Word file, one slide, one image, or 3,000 characters of any other file. A file over the per-file limit is refused with “This file has N pages; your plan allows N pages per file.” A file that would take you past your plan’s pages is refused with a message giving the pages your knowledge bases already hold and the allowance. The pages count against the account of the knowledge base’s creator, or of the Business organization. Deleting documents frees their pages. See Plans and limits. Enterprise has no limit on pages or knowledge bases.

Good practice

  • Give files clear names. The file name appears in the documents list and in citations.
  • Prefer PDFs that contain their text. Scans work, but a PDF with its own text keeps its exact words.
  • To update a document, delete the old version, then upload the new one (see Managing documents).