From 2991c5212639e8a18edf60c37ef1ad839bd24532 Mon Sep 17 00:00:00 2001 From: Daniel Plank Date: Thu, 5 Nov 2026 15:44:08 +0100 Subject: [PATCH] Project scaffolding: gitignore, dependency pins, env template Refs #1 --- .env.example | 15 +++++++++++++++ .gitignore | 12 ++++++++++++ requirements.txt | 13 +++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 requirements.txt diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..d0158d0 --- /dev/null +++ b/.env.example @@ -0,0 +1,15 @@ +# Ollama connection +OLLAMA_MODEL=llama3.2:3b +OLLAMA_BASE_URL=http://localhost:11434 + +# Embedding model (runs locally via sentence-transformers, no API key needed) +EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2 + +# Paths (relative to project root, override if needed) +POLICY_DOCS_DIR=app/data/policies +INDEX_DIR=app/data/index +TICKETS_DB_PATH=app/data/tickets.db + +# RAG subgraph tuning +RAG_TOP_K=4 +RAG_MAX_REWRITES=2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a4c2437 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +__pycache__/ +*.pyc +.env +venv/ +.venv/ +app/data/index/ +app/data/tickets.db +eval/results/*.json +eval/results/*.md +.pytest_cache/ +.streamlit/ +*.egg-info/ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..fb8fd47 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,13 @@ +langgraph==1.2.20 +langchain-core==1.7.6 +langchain-community==0.4.2 +langchain-text-splitters==1.1.3 +langchain-ollama==1.1.0 +langchain-huggingface==1.2.3 +sentence-transformers==6.2.0 +faiss-cpu==1.15.1 +streamlit==1.67.0 +pydantic==2.14.3 +python-dotenv==1.2.4 +pytest==9.2.0 +numpy==2.5.4