Web app combining Next.js for the frontend and FastAPI for the backend to create a powerful AI-powered content evaluation platform.
- AI-Powered Content Analysis: Analyze text content with state-of-the-art language models
- Sentiment Analysis: Visualize the emotional tone of your content with interactive charts
- Authentication: Secure user authentication via Clerk
- Real-time AI Suggestions: Get content improvement suggestions from various LLMs
- Responsive UI: Seamless experience across desktop and mobile devices
- Interactive Visualizations: Multiple chart types including sunburst, pie, bar, and circle pack
- Node.js 18.x or later
- Python 3.10 or later
- OpenAI API key
- Clerk account and credentials
-
Clone the repository:
git clone <repository-url> cd llm-evaluation-platform
-
Create and configure environment variables:
Create a
.env.local
file in the root directory and add your keys. -
Install frontend dependencies:
cd frontend npm install
-
Install backend dependencies:
cd ../backend pip install -r requirements.txt
-
Start the Next.js frontend:
cd frontend npm run dev
-
In a separate terminal, start the FastAPI backend:
cd backend uvicorn main:app --reload
-
Open http://localhost:3000 to view the application in your browser.
- Frontend: Next.js
- Backend: FastAPI
The document editor provides a clean interface for writing and editing content, with real-time word count and AI assistance.
Get comprehensive sentiment analysis of your content with interactive visualizations.
The sunburst chart provides a hierarchical view of sentiment distribution in your content.
The Circle chart provides a hierarchical view of sentiment distribution in your content.
Manage multiple documents in the left sidebar with search functionality.
![Pie Chart]/public/pie.png)
Endpoint | Method | Description |
---|---|---|
/api/chat |
POST | Send messages to the LLM for conversation |
/api/completion |
POST | Get completion suggestions for text |
/api/sentiment |
POST | Analyze sentiment in provided text |
Contributions are welcome! Please feel free to submit pull requests.
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add some amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Next.js
- FastAPI
- OpenAI
- Clerk
- D3.js
- Tailwind CSS
- Shadcn UI
Note: The screenshots shown are from the demo version of the application. Your instance may vary depending on your content and configuration.