π§ Multi-Chat AI Assistant with Memory using LangChain & Gemini 2.5 Flash
π Try the App Here:
π https://neurochat-memory-ai-tyntnh3j9rwxytr9ufqcju.streamlit.app/
NeuroChat Memory AI is an advanced conversational AI application that supports:
- π¬ Multiple chat sessions
- π§ Context-aware memory (remembers previous conversations)
- β‘ Fast and structured AI responses
- π Gemini 2.5 Flash powered intelligence
It mimics ChatGPT-like behavior with chat history navigation + contextual understanding.
- π¬ Multi-Chat System
- π§ Conversation Memory Handling
- π Persistent Chat History (JSON Storage)
- π Switch Between Chats
- π·οΈ Auto Chat Titles (based on first question)
- β‘ Fast Responses using Gemini 2.5 Flash
- π― Structured & Accurate AI Output
- β³ Loading Spinner for Better UX
- π Streamlit Cloud Deployment
- π Secure API Key Handling
| Technology | Purpose |
|---|---|
| Streamlit | Frontend UI |
| LangChain | LLM Orchestration |
| Gemini 2.5 Flash | AI Model |
| Python | Backend Logic |
| JSON | Chat Storage |
| dotenv | Environment Management |
- π§ LLM β ChatGoogleGenerativeAI (Gemini)
- π Chains β LLMChain-style invocation
- π§° Tools β Custom tools (if extended)
- π€ Agents β Custom agent executor (manual structured agent)
- π¬ Messages β Human / AI message formatting
- π§ Memory β Custom conversation memory (history injection)
neurochat-memory-ai/
β
βββ app/
β βββ main.py
β βββ chat_ui.py
β βββ sidebar.py
β
βββ agents/
β βββ agent_builder.py
β βββ tools.py
β
βββ core/
β βββ config.py
β βββ memory.py
β
βββ storage/
β βββ chat_store.py
β βββ chats.json
β
βββ utils/
β βββ helpers.py
β
βββ assets/
β βββ home.png
β βββ chat.png
β βββ history.png
β βββ memory.png
β
βββ .streamlit/
β βββ secrets.toml
β
βββ .env
βββ .gitignore
βββ requirements.txt
βββ README.md
βββ LICENSE
git clone https://github.com/22AD040/neurochat-memory-ai.git
cd neurochat-memory-aipython -m venv venv
venv\Scripts\activatepip install -r requirements.txtCreate .env file:
GEMINI_API_KEY=your_api_key_here
streamlit run app/main.py- Push code to GitHub
- Go to Streamlit Cloud
- Add Secrets:
GEMINI_API_KEY = your_api_key
- Deploy π
- π API keys stored in
.env/ Streamlit Secrets - π«
.gitignoreprevents sensitive files upload - π§ Chat sessions isolated per user
- π
chats.jsonexcluded from Git
- π§ Vector DB Memory (FAISS / Chroma)
- π File Upload + RAG
- π Multi-language support
- π Authentication system
- π Analytics dashboard
Ratchita B
π Artificial Intelligence & Data Science
If you like this project:
- π Give it a β on GitHub
- π Share with others
This project is licensed under the MIT License



