A multi-persona AI-powered documentation analyzer built with FastAPI and OpenAI.
This tool reads your technical documentation and provides feedback from multiple perspectives: Junior Developers, Senior Developers, Business Users, and an AI agent. It helps you identify gaps, confusing sections, and actionable suggestions, so your documentation is clearer and more effective.
- What It Does
- Key Features
- Tech Stack
- Getting Started
- How to Use
- Personas Explained
- Sample Persona Comments
- Workflow Diagram
- Folder Structure
- Contributing
- License
AI Docs Analyzer reads your documentation and generates persona-driven comments:
- Junior Developer: Asks clarifying questions, identifies missing context, and points out areas that might confuse a beginner.
- Senior Developer: Focuses on brevity, accuracy, and technical correctness.
- Business User: Highlights the business relevance, metrics, and clarity for non-technical audiences.
- AI Agent: Suggests tasks, queries, or improvements that can be performed based on the content.
With this, you can quickly see where your docs are strong and where they need improvement.
- Multi-persona feedback on documentation
- Real-time inline comments
- Actionable insights from AI
- Supports both short and long documentation
- Easy to run locally with minimal setup
- Backend: Python, FastAPI
- Frontend: HTML, CSS, JavaScript
- AI: OpenAI API
- Other: Git for version control,
.gitignorefor secret management
Follow these steps to set up and run the project on your local machine.
git clone https://github.com/Kemi-Elizabeth/AI-DocReviewer.git
cd AI-DocReviewerCreate a virtual environment (to keep dependencies isolated):
python3 -m venv venv
source venv/bin/activate # Mac/Linux
venv\Scripts\activate # Windowspip install -r backend/requirements.txtThis installs FastAPI, OpenAI, and all other required libraries.
Create a .env file in the backend/ folder with your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key_hereNote: .env is included in .gitignore for security.
cd backend
uvicorn main:app --reloadopen ../frontend/index.html # Mac
# or just double-click the HTML file on any OSYou’re now ready to interact with your AI Docs Analyzer.
- Paste or load your documentation into the editor on the frontend.
- Click “Analyze” to generate comments.
- Review feedback from all four personas
- Each persona’s comments appear in separate sections.
- Iterate on your documentation based on the feedback.
| Persona | Focus | Example Feedback |
|---|---|---|
| Junior Developer | Clarity & basics | “Wait… what does PHP-FPM stand for?” |
| Senior Developer | Brevity & correctness | “This section is too long; summarize in 3 lines.” |
| Business User | Metrics & impact | “How does this affect our conversion rate or KPIs?” |
| AI Agent | Actions & tasks | “Based on this content, I could answer these queries: [X, Y, Z] or suggest improvements in structure.” |
Documentation excerpt: “To deploy the application, first ensure Docker is installed and then configure the environment variables before starting the containers.”
Junior Dev: “What does Docker mean here? Is it needed on all machines?” “Which environment variables exactly? Can you give examples?” “What does ‘starting the containers’ involve? I’m confused.”
Senior Dev: “Too verbose. Condense to: Install Docker, set environment vars, run containers.” “Check command syntax; consider adding default values.”
Business User: “Does this deployment process affect uptime or SLA?” “Are there costs associated with Docker for this setup?”
AI Agent: “Could provide step-by-step instructions for setup.” “Could generate a checklist for deployment. “Could validate environment variables automatically.”
flowchart LR
A[User uploads or pastes docs] --> B[Frontend Editor]
B --> C[Backend FastAPI receives docs]
C --> D[OpenAI API analyzes docs]
D --> E[Generate persona comments]
E --> F[Frontend displays comments]
F --> G[User reviews and iterates]
The diagram shows how documentation flows from input to AI analysis, persona comment generation, and back to the user.
AI-DocReviewer/
│
├─ backend/
│ ├─ main.py # FastAPI backend
│ ├─ requirements.txt # Python dependencies
│ ├─ __pycache__/ # Python cache files
│ └─ .env # API keys (ignored)
│
├─ frontend/
│ ├─ index.html # User interface
│ ├─ styles.css # Styling
│ └─ script.js # JS logic
│
├─ .gitignore
└─ README.md- Fork the repository
- Create a feature branch:
git checkout -b feature/new-persona- Commit your changes:
git commit -m "Add new persona"- Push to branch:
git push origin feature/new-persona- Open a Pull Request
MIT License © Kemi Elizabeth Ojogbede