ai_knowledge_document
Perform CRUD operations on legacy AI Knowledge documents: get, list, create, update, delete, reindex, and download. Requires a project API key.
Instructions
Legacy AI Knowledge API: document CRUD operations. For new RAG data, use Storage files/vector_stores APIs.
Methods:
get: Get a document by ID
list: List documents in a project
create: Create a new document (text or URL)
update: Update document metadata/content
delete: Delete a document
reindex: Reprocess a document
download: Download original document file
Requires a legacy AI Knowledge project API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Document ID | |
| name | No | Document name/title | |
| page | No | Page number (for list) | |
| tags | No | Document tags | |
| flags | No | Processing flags (for create) | |
| limit | No | Page size (for list) | |
| apiKey | Yes | Legacy AI Knowledge project API key | |
| method | Yes | Document operation to perform | |
| parser | No | Document parser to use | |
| status | No | Document status (for update) | |
| content | No | Document content (text or URL) | |
| filters | No | Document filters (for list) | |
| recrawl | No | Also recrawl source URL (for reindex) | |
| replace | No | Replace if document with same name exists | |
| projectId | Yes | Legacy AI Knowledge project ID | |
| externalId | No | External ID for the document | |
| environment | No | Optional environment name (from PRISME_ENVIRONMENTS) to use specific API URL | |
| includeContent | No | Include document content in response (for list) | |
| includeMetadata | No | Include metadata in response (for list) |