MindMesh AI transforms documents, educational videos, and audio into a searchable AI knowledge base. It combines Faster-Whisper, semantic embeddings, Supabase PostgreSQL + pgvector, RAG, and Gemini/Groq to answer questions from your own content.
Purpose: Turn long courses and large collections of documents into an interactive knowledge system where users can ask questions instead of manually searching through hours of content.
| Feature | Purpose |
|---|---|
| π Document Ingestion | Process PDF, TXT, Markdown and CSV files |
| ποΈ Faster-Whisper | Converts audio/video into searchable transcripts |
| π§© Chunking + Embeddings | Converts content into retrieval-ready knowledge |
| ποΈ Supabase + pgvector | Stores documents, chunks and vector embeddings |
| π Semantic Search | Retrieves the most relevant knowledge for each question |
| π€ RAG Chat | Generates grounded answers from indexed content |
| β‘ Groq / Gemini | Flexible LLM generation |
| π Analytics | Shows vector database, LLM and embedding health |
| π₯οΈ Streamlit | Simple, user-friendly knowledge workspace |
| π FastAPI | Existing API/backend architecture remains available |
graph TD
U[User] --> S[Streamlit UI]
S --> D[PDF / TXT / MD / CSV]
S --> M[Audio / Video]
M --> F[FFmpeg]
F --> W[Faster-Whisper]
D --> C[Text Extraction]
W --> C
C --> CH[Text Chunking]
CH --> E[BGE Embeddings]
E --> SB[(Supabase PostgreSQL + pgvector)]
S --> Q[User Question]
Q --> QE[BGE Query Embedding]
QE --> SB
SB --> CTX[Relevant Context]
CTX --> L[RAG LLM]
L --> G[Groq]
L --> GE[Gemini]
G --> A[Grounded Answer]
GE --> A
A --> S
The original FastAPI application remains available and is not replaced by the Streamlit interface.
- Upload a document, audio file, or video.
- Extract text or transcribe media with Faster-Whisper.
- Split content into overlapping chunks.
- Generate BGE embeddings.
- Store documents, chunks and embeddings in Supabase PostgreSQL using pgvector.
- Convert each user question into an embedding.
- Retrieve the most relevant chunks using Supabase vector similarity search.
- Send the retrieved context to Groq or Gemini.
- Return a concise, grounded answer with source information.
Streamlit Β· Python 3.11 Β· Supabase Β· PostgreSQL Β· pgvector Β· Faster-Whisper Β· SentenceTransformers Β· BGE Embeddings Β· Groq Β· Gemini Β· FastAPI Β· FFmpeg Β· Docker
MindMesh-AI/
βββ MindMesh-AI/
βββ streamlit_app/
βββ app.py
βββ requirements.txt
βββ packages.txt
βββ .streamlit/
βββ secrets.toml.example
The Streamlit entry point is:
MindMesh-AI/streamlit_app/app.py
git clone https://github.com/Piyu242005/MindMesh-AI.git
cd MindMesh-AI
python -m venv .venvWindows:
.venv\Scripts\activatemacOS/Linux:
source .venv/bin/activateInstall Streamlit dependencies:
pip install -r MindMesh-AI/streamlit_app/requirements.txtInstall FFmpeg and make sure it is available on your system PATH.
Start the application:
streamlit run MindMesh-AI/streamlit_app/app.pyConfigure the following values in Streamlit Cloud Secrets or your local Streamlit secrets file:
SUPABASE_URL = "https://YOUR_PROJECT_REF.supabase.co"
SUPABASE_KEY = "YOUR_SUPABASE_PUBLISHABLE_KEY"
GROQ_API_KEY = "YOUR_GROQ_API_KEY"
GROQ_MODEL = "llama-3.3-70b-versatile"
# Optional Gemini fallback
GEMINI_API_KEY = "YOUR_GEMINI_API_KEY"
GEMINI_MODEL = "gemini-2.5-flash"
EMBEDDING_MODEL = "BAAI/bge-small-en-v1.5"
RAG_TOP_K = "5"
WHISPER_MODEL = "base"Never commit real API keys or production secrets to GitHub.
- Open Streamlit Community Cloud.
- Select the
Piyu242005/MindMesh-AIrepository. - Select the
mainbranch. - Set the main file to:
MindMesh-AI/streamlit_app/app.py
- Add the required secrets.
- Deploy.
packages.txt installs FFmpeg for audio/video processing.
MindMesh's Streamlit RAG uses a dedicated Supabase project with:
- PostgreSQL
vector/ pgvector extensionmindmesh_documentstablemindmesh_chunkstable- Document upsert RPC
- Chunk insertion RPC
- Vector similarity search RPC
Qdrant is no longer used by the Streamlit application.
The original Docker/FastAPI deployment architecture remains available. Configure application secrets and infrastructure according to your deployment environment.
- FastAPI architecture
- Streamlit knowledge workspace
- Faster-Whisper transcription
- PDF / TXT / Markdown / CSV ingestion
- Supabase PostgreSQL + pgvector
- Semantic vector retrieval
- RAG chat
- Groq / Gemini support
- FFmpeg media processing
- User authentication
- Multi-user knowledge bases
- YouTube URL ingestion
- Advanced knowledge graph
- Retrieval/answer evaluation suite
Active development. The Streamlit version is ready for deployment with Supabase + pgvector. The original FastAPI architecture remains available alongside the new Streamlit experience.
Piyush Ramteke β Data Scientist | AI Engineer | Python Developer
GitHub: https://github.com/Piyu242005

