Generate Documentation from Prompts
Create comprehensive documentation by describing what you need in natural language.
Read time:6 minUpdated:2026-01-10
Generate Documentation from Prompts
TyneBase's AI can transform simple descriptions into comprehensive, well-structured documentation.
How It Works
Our AI pipeline uses a multi-stage process:
- Prompt Analysis: Understanding your intent and requirements
- RAG Context Retrieval: Finding relevant existing documentation
- Content Generation: Creating structured, accurate content
- Processing: Transforming your knowledge to md and ingesting it to the database.
- Post-Processing: Formatting, linking, and quality checks
Writing Effective Prompts
Be Specific
❌ "Write about our API"
✅ "Create a comprehensive REST API reference for our user authentication endpoints, including request/response examples, error codes, and rate limiting details"
Provide Context
Create an onboarding guide for new backend engineers.
Context:
- We use Node.js with TypeScript
- Our API runs on Fly.io
- We use Supabase for database and auth
- Code reviews are required before merging
Include sections on:
1. Local development setup
2. Code style and conventions
3. Pull request workflow
4. Deployment process
Specify Format
| Format | Best For |
|---|---|
| Article | Explanatory content, concepts |
| Guide | Step-by-step procedures |
| Runbook | Operational procedures |
| FAQ | Common questions |
| Reference | API docs, specifications |
AI Provider Options
TyneBase supports three EU-compliant AI providers:
DeepSeek V3 — 1 credit per generation
- Best for: Quick drafts, routine documentation
- Strengths: Fastest, most economical
- Region: eu-west-1 via AWS Bedrock
Google Gemini 2.5 Flash — 1 credit per generation
- Best for: Research-heavy content, multimodal
- Strengths: Large context window, balanced quality
- Region: europe-west2 (London) via Vertex AI
Anthropic Claude Sonnet 4.5 — 2 credits per generation
- Best for: Nuanced writing, complex analysis
- Strengths: Detailed reasoning, best output quality
- Region: eu-central-1 via AWS Bedrock
Generation Settings
| Setting | Options | Description |
|---|---|---|
| Tone | Professional, Casual, Technical | Writing style |
| Length | Brief, Standard, Comprehensive | Content depth |
| Examples | On/Off | Include code samples |
| RAG Context | On/Off | Use existing docs as reference |
Document Lineage
Every AI-generated document tracks:
{
"source": "ai_generated",
"prompt_hash": "sha256:abc123...",
"model": "deepseek-v3",
"tokens_used": 2847,
"credits_charged": 1,
"rag_sources": ["doc-123", "doc-456"],
"generated_at": "2026-01-10T14:30:00Z"
}
Best Practices
- Review Before Publishing: AI content is created as drafts
- Verify Technical Details: Especially code and configurations
- Add Company Context: Include internal links and specifics
- Iterate: Generate multiple versions and combine the best
- Use RAG: Enable context retrieval for consistency