Knowledge Base
Knowledge Base provides a data source that can be reindexed for RAG. Node Ask AI to display citations the sources used when this feature is enabled.
Accessing the Knowledge Base
Section titled “Accessing the Knowledge Base”Open your automation, then navigate to the Knowledge in /automations/<id>/knowledge.
Adding Data Sources
Section titled “Adding Data Sources”You can add several types of sources:
| Type | Supported formats | Notes |
|---|---|---|
| File | PDF, DOCX, TXT, and more (full list below) | Upload directly from your computer; supports multiple files at once. |
| URL | Public URLs | Page content is scraped and parsed automatically; check the Sitemap to crawl the entire sitemap. |
- Click Add Source in the top right corner.
- Choose the source type — File or URL.
- For files: select or drag files into the upload area. For URLs: enter the full URL address.
- Click Upload. The system will parse and index the content automatically.
- Wait until the status changes to Ready (green).
Supported File Formats
Section titled “Supported File Formats”When selecting a file, the file picker dialog only shows supported types — filtering is done based on the file extension (not MIME type). Mahadata accepts the following formats:
| Category | Extension | Notes |
|---|---|---|
| Documents | .pdf, .doc, .docx | PDF and Microsoft Word. |
| Text & Markdown | .txt, .md, .markdown | Plain text and Markdown. |
| Web / HTML | .html, .htm | Local HTML files; content is parsed like a web page. |
| Spreadsheet | .csv, .xls, .xlsx | CSV and Microsoft Excel. |
| Presentation | .pptx | Microsoft PowerPoint. |
| Structured data | .json | JSON files. |
| URL / Website | — (URL address) | Not a file — page content is scraped; see Sitemap Crawling. |
Uploading Multiple Files at Once (Bulk Upload)
Section titled “Uploading Multiple Files at Once (Bulk Upload)”The upload area supports selecting multiple files at once. Hold down Ctrl/Cmd (or Shift) to select multiple files in a single pick, or drag multiple files into the upload area.
- Each file is uploaded one by one to the knowledge base; progress is shown via the upload indicator and notifications.
- When finished, the system displays a summary “
NfromMfile uploaded successfully”. - Files that fail to upload are skipped without stopping the process — the system continues to the next file.
- Each file becomes one source that is parsed and indexed independently, with its own status (Processing / Indexed / Error).
Crawling a Sitemap (URL Source)
Section titled “Crawling a Sitemap (URL Source)”When adding a source URL, a checkbox is available Sitemap right below the address field.
- Unchecked (default) — Mahadata fetches and parses only a single page at that URL.
- Checked (Sitemap) — the URL is treated as sitemap (e.g.
https://situs.com/sitemap.xml). Mahadata reads the list of URLs inside the sitemap, then crawls and indexes each listed page.
Each crawled page becomes a sub-source linked to the parent sitemap source (parent_source_id), so you can still browse chunks, reindex, or delete them individually. The checkbox option is sent to the backend as the field is_sitemap.
Automatic Sync (URL & Sitemap)
Section titled “Automatic Sync (URL & Sitemap)”URL sources (including sitemaps) can be scheduled to re-sync automatically to keep content up to date. Choose a schedule from the sync dropdown on the source row:
| Schedule | Behavior |
|---|---|
| None (default) | No automatic synchronization; manual re-index only. |
Hourly (hourly) | Fetch and reindex every hour. |
Daily (daily) | Fetch and reindex every day. |
Weekly (weekly) | Fetch and reindex every week. |
The last and next sync times are shown below the source name. Automatic sync only applies to URL-type sources — files must be re-uploaded manually when they change.
Managing Chunks
Section titled “Managing Chunks”After a source is parsed, the content is split into chunks (text snippet). You can:
- View chunks — click the source to open its details and inspect each chunk’s text.
- Re-index — click the re-index button if the source content has changed or search results are inaccurate.
Using the Knowledge Base in a Flow
Section titled “Using the Knowledge Base in a Flow”Once the knowledge base is populated, enable it on the node Ask AI:
- Add a node Ask AI to your flow.
- In the node configuration, enable the toggle Use Knowledge Base.
- The node will automatically search for relevant chunks based on the user’s question and include them as context for the LLM.
Reply from the node Ask AI node that uses a knowledge base will include citations — references to the original sources used.
Best Practices
Section titled “Best Practices”- One topic per source. Documents that mix many topics produce less relevant chunks.
- Update regularly. If information changes, re-upload or re-index the source. For URL/sitemap sources, use an automatic sync schedule.
- Test with real questions. After adding a source, test with frequently asked customer questions to ensure accuracy.