How oam11/insightdocs works
Project type and purpose
• This is a single-page web/RAG application built in Python using Streamlit.
• Purpose: let users upload documents, index them with FAISS, ask questions via Groq’s Gemma2 LLM, and export the Q&A session as a PDF.
File structure
• Top-level files only (no separate “frontend” vs. “backend” dirs).
• app.py – the Streamlit main entrypoint (UI + orchestration)
• utils.py – shared helper functions (document I/O, chunking, embedding, PDF exports)
• index.html – optional custom static HTML/CSS used by the Streamlit app
• requirements.txt – Python dependencies (Streamlit, Groq SDK, FAISS, SentenceTransformers, ReportLab, etc.)
• No external microservices or DB clusters defined; FAISS is embedded in-process.
README for additional insights
• Core pipeline stages:
a. Document Processing (type detection, chunking, embedding)
b. Indexing with FAISS
c. Question Answering (semantic retrieval + Groq Gemma2 API)
d. Session Management (ID, history)
e. PDF Export (ReportLab)
• External dependencies: Groq API, Sentence Transformers.