DocMind lets you upload documents and ask questions based on information available in youd document. Answers are generated by an AI model, and cite exact source in your document.
Live demo:
- Upload a PDF or text document.
- The document is split into overlapping chunks and converted into vector embeddings.
- Ask a question — DocMind finds the most relevant chunks using vector search, then generates an answer, citing its sources.
- Backend: Node.js, Express, TypeScript
- Database & Vector Search: MongoDB Atlas (Atlas Vector Search)
- AI: Google Gemini (embeddings + chat generation)
- Frontend: HTML, CSS, vanilla JavaScript
- File Processing: Multer (uploads), pdf-parse (PDF text extraction)
- Upload PDF or plain text documents: -
.pdf.txt - Automatic chunking and embedding generation
- Node.js 18+
- A MongoDB Atlas account (free) with a Vector Search index configured
- A Google Gemini API key (free, from Google AI Studio)
git clone https://github.com/vikasranax/docmind.git
cd docmind
npm installPORT=3000
MONGODB_URI=your_mongodb_connection_string
GEMINI_API_KEY=your_gemini_api_key
Create a vector search index named vector_index on the docmind.documents collection:
{
"fields": [
{
"type": "vector",
"path": "embedding",
"numDimensions": 768,
"similarity": "cosine"
}
]
}npm run devVisit http://localhost:3000.
MIT