This repository contains only the minimal local RAG app and the indexed Markdown chunks needed to run it.
rag_app/: Python Streamlit RAG app.data/rag-chunks/: Markdown chunks used as the retrieval corpus.requirements.txt: Python dependencies.run_rag_app.ps1: Windows helper script.
Install dependencies:
pip install -r requirements.txtInstall Ollama, then pull the default small model:
ollama serve
ollama pull qwen3:1.7bpython rag_app/indexer.py --buildExpected current count:
3101 chunks
Check status:
python rag_app/indexer.py --statusstreamlit run rag_app/app.pyThen open:
http://localhost:8501
On Windows you can also run:
powershell -ExecutionPolicy Bypass -File rag_app/run_rag_app.ps1Test indexing and retrieval:
python rag_app/smoke_test.pyTest retrieval plus Ollama generation:
python rag_app/smoke_test.py --with-ollamaبس اعمل copy و paste لهاي جوى الterminal ملاحظة افتح الterminal من جوى الfolder تبع المشروع
git clone https://github.com/any777777/RAG.git
cd RAG
pip install -r requirements.txt
ollama serve
ollama pull qwen3:1.7b
python rag_app/indexer.py --build
streamlit run rag_app/app.pyبعدين رح يفتح معك هون
http://localhost:8501
لازم يكون مثبت عندك
- Python مثبت.
- Ollama مثبت.
- اتصال إنترنت في أول تشغيل لتحميل:
- نموذج Ollama
qwen3:1.7b - نموذج embeddings من Hugging Face.
- نموذج Ollama
- بعد أول بناء للفهرس، التطبيق يعمل محلياً من
data/rag-chunks. و غالبا انهم عندك
- The app builds Chroma locally in
rag_app/.chroma/. rag_app/.chroma/, logs, and Python caches are intentionally ignored by Git.- The default model is
qwen3:1.7bbecause it is light enough for an 8GB RAM machine. - Arabic questions work in retrieval, but answer generation quality depends on the local Ollama model.