ask1 / README.md
ramysaidagieb's picture
Upload 5 files
c0b2a4d verified
|
raw
history blame
664 Bytes

🧠 Arabic RAG System with DSPy + Gradio

This is a full Hugging Face Space project that allows:

  • Uploading Arabic PDF documents.
  • Storing and indexing chunks using ChromaDB.
  • Asking questions and generating answers using DSPy with context retrieval.
  • Improving answer accuracy using MIPROv2 optimization based on train/val sets.

πŸš€ Usage

  1. Upload one or more Arabic PDFs.
  2. Ask a question in Arabic.
  3. Optionally upload trainset.jsonl and valset.jsonl to fine-tune the DSPy RAG module.

πŸ“ Files

  • app.py β€” Main code
  • requirements.txt β€” Dependencies
  • trainset.jsonl / valset.jsonl β€” Example training and validation sets