Skip to content

ghamzak/document-QA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

document-QA

Upload your personal documents and chat with them (ask questions).

This is a Retrieval-Augmented Generation (RAG) web app for chatting with PDF documents using Flask, Sentence Transformers, FAISS, and OpenTelemetry for observability.

Features

  • Upload and chat with PDF documents
  • Preprocessing, chunking, and embedding with Sentence Transformers
  • Vector storage and retrieval with FAISS
  • UI chatbot with chunk provenance display
  • Query rewriting and prompt engineering for robust RAG
  • Observability with OpenTelemetry, Prometheus, Loki, and Grafana
  • Logging of latency for embedding, retrieval, and LLM generation
  • Testing and monitoring

Directory Structure

app/
  routes/
  services/
  utils/
  templates/
  static/
docs/
tests/
observability/
Dockerfile
docker-compose.yml
.env
README.md

Setup

See docs/ for detailed setup and usage instructions.

Notes:

OpenTelemetry has been disabled for now, but you can still access Prometheus, Loki, and Grafana. See the docs.

About

Upload your personal documents and chat with them (ask questions)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published