PersonaFlow/
│── backend/ # FastAPI backend service
│ ├── main.py # API endpoints & logic
│ ├── config.py # Configurations (API keys, settings)
│ ├── memory.py # FAISS-based memory storage
│ ├── personas.py # Persona definitions & prompts
│ ├── embeddings.py # Vector embeddings handler
│ ├── requirements.txt # Backend dependencies
│── frontend/ # Next.js frontend application
│ ├── pages/ # Next.js pages
│ ├── package.json # Frontend dependencies
│── README.md # Project documentation
│── .env # API keys & environment variables
** An intelligent, persona-driven chatbot powered by Mistral AI ** Persona's include AI therapist, product manager, code reviewer, and research assistant.
- ** Multi-Persona AI**: Switch between different AI roles dynamically.
- ** Memory & Adaptation**: AI learns from user interactions.
- ** Fast & Scalable**: Powered by FastAPI, Next.js, and FAISS memory retrieval.
- ** Frontend**: Next.js (TypeScript), TailwindCSS
- ** Backend**: FastAPI (Python)
- ** LLM**: Mistral AI API
- ** Memory**: FAISS + PostgreSQL
- ** State Management**: Redis
git clone https://github.com/your-repo/personaflow.git
cd personaflowcd backend
pip install -r requirements.txtcd frontend
npm installuvicorn main:app --reloadnpm run dev| Method | Endpoint | Description |
|---|---|---|
POST |
/chat |
Sends user message to AI |
GET |
/personas |
Lists available personas |
POST |
/set_persona |
Switches to a specific persona |
GET |
/history |
Retrieves past interactions |