A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.
audit: fix reasoning_rag - add missing docstrings, replace em dashes in module docstrings
Tiioluwanibfbac721e1a3
diff --git a/rag_apps/reasoning_rag/agents.py b/rag_apps/reasoning_rag/agents.pyindex bd1668f..5a84b96 100644--- a/rag_apps/reasoning_rag/agents.py+++ b/rag_apps/reasoning_rag/agents.py@@ -2,9 +2,9 @@Two agents collaborate:-* **Retriever agent** — turns a user question into a focused search query and+* **Retriever agent** - turns a user question into a focused search query andpulls the most semantically relevant chunks out of ChromaDB.-* **Reasoning agent** — works through the retrieved evidence step by step and+* **Reasoning agent** - works through the retrieved evidence step by step andproduces a grounded, cited answer.Both agents use the OpenAI SDK pointed at the Orq.ai router.diff --git a/rag_apps/reasoning_rag/app.py b/rag_apps/reasoning_rag/app.pyindex c08b1b8..5aff4af 100644--- a/rag_apps/reasoning_rag/app.py+++ b/rag_apps/reasoning_rag/app.py@@ -1,8 +1,8 @@-"""Reasoning RAG — Gradio UI.+"""Reasoning RAG - Gradio UI.Two parallel panels:-* Left — the live, step-by-step reasoning trace.-* Right — the grounded final answer with numbered citations.+* Left - the live, step-by-step reasoning trace.+* Right - the grounded final answer with numbered citations."""from __future__ import annotations@@ -34,6 +34,7 @@ footer { visibility: hidden; }def _missing_keys() -> list[str]:+ """Return a list of required environment variable names that are not currently set."""missing = []if not os.getenv("ORQ_API_KEY"):missing.append("ORQ_API_KEY")@@ -121,6 +122,7 @@ def ask(question: str):def build_demo() -> gr.Blocks:+ """Construct and return the Gradio Blocks interface with the two-panel reasoning UI."""with gr.Blocks(title="Reasoning RAG", theme=gr.themes.Soft(), css=CUSTOM_CSS) as demo:gr.Markdown("# Reasoning RAG\n"