norasalem88/rag_assistant_devops
0
DevOps RAG Assistant
Upload your DevOps PDFs and ask questions. Powered by Hugging Face.
Features
- Local Execution: Uses ChromaDB for vector storage and Ollama (qwen2.5:7b) for generation.
- English Only: Focused specifically on DevOps documentation in English.
- Minimal UI: Streamlit interface for uploading PDFs and asking questions.
Setup
- Ensure Ollama is installed and the
qwen2.5:7bmodel is pulled:
ollama pull qwen2.5:7b- Setup Python environment:
python -m venv venv
# Windows
.\venv\Scripts\activate
# Linux/Mac
source venv/bin/activate- Install dependencies:
pip install -r requirements.txtRunning the Application
To run the Streamlit UI:
streamlit run app.pyThen open your browser to http://localhost:8501. You can upload DevOps PDFs (like Kubernetes & Docker documentation) via the sidebar.
Project Structure
data/: Contains uploaded PDF documents.src/:ingestion.py: Handles loading PDFs, chunking, and embedding creation.retrieval.py: Setup for ChromaDB retriever.generation.py: LangChain RAG pipeline connecting ChromaDB and Ollama.utils.py: Common helper functions (logging, embeddings).vectorstore/: Persisted ChromaDB embeddings.app.py: Streamlit frontend.
