DocQuery is an AI-powered document question-answering app.
Upload a text-based PDF, TXT, or DOCX file and ask questions in natural language.
Answers are grounded strictly in the uploaded document using vector search + OpenAI models.
Built for:
- Fast indexing
- Clear, source-based answers
- Clean chat UX
- Safe credit usage
- One-document-at-a-time workflow
- π Supports PDF, TXT, DOCX
- π« Rejects scanned/image-only PDFs
- β‘ Fast bounded indexing (usually under 1 minute)
- π Semantic search using FAISS + OpenAI embeddings
- π¬ Natural chat interface
- π§ Answers strictly from document content (no hallucinations)
- π§ Follow-up suggestion buttons when information isnβt found
- π UI lock while indexing or answering
- β»οΈ Replace or remove active documents anytime
- π§Ή Clear chat button
- Frontend: Streamlit
- Vector Store: FAISS
- Embeddings: OpenAI
text-embedding-3-small - LLM: OpenAI
gpt-4o-mini - Framework: LangChain
- Clone the repo:
git clone https://github.com/<your-username>/docquery.git
cd docqueryThis app does not ship with an API key.
You must use your own OpenAI API key to run DocQuery.
Your key is:
- Never stored in this repository
- Never committed to GitHub
- Loaded from environment variables or Streamlit Secrets
Create a .env file:
OPENAI_API_KEY=sk-your-own-key-here