Managing Documents
Add documents to your knowledge bases.
Supported Formats
| Format | Extension |
|---|---|
.pdf | |
| Word | .docx |
| Text | .txt |
| Markdown | .md |
| HTML | .html |
Uploading Documents
Via UI
- Navigate to your knowledge base
- Click Add Documents
- Select files to upload
- Wait for processing
Via API
curl -X POST https://api.flowmaestro.ai/knowledge-bases/{id}/documents \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@document.pdf"
Document Processing
- Text Extraction — Content extracted from the file
- Cleaning — Formatting normalized, noise removed
- Chunking — Split into ~500 token chunks with overlap
- Embedding — Each chunk converted to vectors
- Indexing — Stored in vector database
tip
Keep documents focused. Smaller, topic-specific documents often provide better search results.