create_knowledge_database
Create a custom knowledge database to index PDFs from specified library folders and enable cited answers from your documents.
Instructions
Register a new custom knowledge database layer.
After creating, add PDFs to knowledge/library/<your-folder>/ and call
build_pdf_knowledge_db(database='<slug>') to index them.
Args:
slug: URL-safe identifier (e.g. 'dhis2-specialist', 'malaria-research').
name: Human-readable name (e.g. 'DHIS2 Specialist Knowledge').
description: What this database covers.
layer: Layer number (4+ for custom; built-ins use 1–3).
folders: List of library subfolder paths to include
(e.g. ['open-access-books/Health Informatics & DHIS2']).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| name | Yes | ||
| description | No | ||
| layer | No | ||
| folders | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |