A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.
Resolve merge conflicts across all README files
Sumanth0771a47eef82d32
diff --git a/OCR/image_to_structured_data/README.md b/OCR/image_to_structured_data/README.mdindex 66ab0b4..f8fd1e1 100644--- a/OCR/image_to_structured_data/README.md+++ b/OCR/image_to_structured_data/README.md@@ -2,13 +2,11 @@A high-fidelity, visual extraction framework that converts images into validated, structured JSON using Mistral Large 3 and Pydantic.-<<<<<<< HEAD-=======## Demo->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a+## OverviewThis project demonstrates how to move beyond raw text OCR to **Structured Visual Extraction**. Instead of getting a messy block of text, this tool uses the `instructor` library to force the VLM (Vision Language Model) to output data that fits a strict Pydantic schema.@@ -44,11 +42,7 @@ Before you begin, ensure you have:- Python 3.10 or higher (Recommended)- API keys for:-<<<<<<< HEAD- - [ ] [Mistral AI Console](https://console.mistral.ai/)-=======- [Mistral AI Console](https://console.mistral.ai/)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a- Basic understanding of Pydantic and Multimodal LLMs.## Installationdiff --git a/OCR/latex_formula_ocr/README.md b/OCR/latex_formula_ocr/README.mdindex 5467786..43a3da1 100644--- a/OCR/latex_formula_ocr/README.md+++ b/OCR/latex_formula_ocr/README.md@@ -1,25 +1,3 @@-<<<<<<< HEAD-# LaTeX Formula OCR — Extract and render math formulas from images using local AI--## Overview--Reading mathematical formulas from images or scanned documents is tedious and error-prone when done by hand. This tool solves that by running a vision-language model entirely on your machine — no cloud services, no API keys — to detect every equation in an uploaded image or PDF and instantly render it in a polished, browser-native display.--It works by sending the image to **GLM-OCR** (served locally via Ollama), which returns raw LaTeX source for each detected formula. The app then parses those results and renders them visually using **KaTeX**, all within a Streamlit web interface.--Students, researchers, engineers, and anyone who regularly works with mathematical documents will benefit from this tool — particularly when digitising textbooks, lecture slides, or handwritten notes.--## Features--- **Fully local inference** — GLM-OCR runs via Ollama; no API keys or internet access required for OCR-- **Image and PDF support** — upload PNG, JPG/JPEG, or single-page PDFs (first page rendered automatically)-- **Multi-formula extraction** — detects and extracts every equation in the image in one pass-- **In-browser KaTeX rendering** — formulas are rendered in display mode with proper mathematical typesetting-- **LaTeX source viewer** — each formula card shows the raw LaTeX alongside the rendered output-- **One-click copy** — copy any formula's LaTeX source to the clipboard instantly-- **Live Ollama status** — sidebar shows whether Ollama is running and whether glm-ocr is installed-- **Auto image resizing** — large images are downscaled before inference to keep requests fast-=======# LaTeX Formula OCR> Extract and render math formulas from images using local AI, powered by GLM-OCR and KaTeX.@@ -46,7 +24,6 @@ Students, researchers, engineers, and anyone who regularly works with mathematic- **One-click copy**: copy any formula's LaTeX source to the clipboard instantly- **Live Ollama status**: sidebar shows whether Ollama is running and whether glm-ocr is installed- **Auto image resizing**: large images are downscaled before inference to keep requests fast->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Tech Stack@@ -133,10 +110,7 @@ latex-formula-ocr/├── requirements.txt # Python dependencies└── README.md # Project documentation```-<<<<<<< HEAD-=======---[Back to top](#latex-formula-ocr)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/OCR/medical_prescription_digitizer/README.md b/OCR/medical_prescription_digitizer/README.mdindex 6ac1d0f..ad992fe 100644--- a/OCR/medical_prescription_digitizer/README.md+++ b/OCR/medical_prescription_digitizer/README.md@@ -2,11 +2,6 @@> Extract, structure, and validate handwritten or printed prescriptions using Mistral Large 3 and RxNorm.-<<<<<<< HEAD-## Overview--Upload a prescription image — handwritten or printed — and the app uses Mistral Large 3's vision capabilities to read and interpret it, including messy handwriting and medical abbreviations. Extracted drug names are then validated against the [RxNorm](https://rxnav.nlm.nih.gov/) drug database (free, no API key required). Validated drugs are highlighted in green; unrecognised or flagged ones appear in red.-=======## Demo@@ -14,7 +9,6 @@ Upload a prescription image — handwritten or printed — and the app uses Mist## OverviewUpload a prescription image (handwritten or printed) and the app uses Mistral Large 3's vision capabilities to read and interpret it, including messy handwriting and medical abbreviations. Extracted drug names are then validated against the [RxNorm](https://rxnav.nlm.nih.gov/) drug database (free, no API key required). Validated drugs are highlighted in green; unrecognised or flagged ones appear in red.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Features@@ -38,21 +32,13 @@ Upload a prescription image (handwritten or printed) and the app uses Mistral La## Prerequisites- Python 3.10 or higher-<<<<<<< HEAD-- A Mistral API key — get one at [platform.mistral.ai](https://platform.mistral.ai)-=======- A Mistral API key. Get one at [platform.mistral.ai](https://platform.mistral.ai)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Installation```bashgit clone https://github.com/Sumanth077/Hands-On-AI-Engineering.git-<<<<<<< HEAD-cd Hands-On-AI-Engineering/ocr/medical-prescription-digitizer-=======cd Hands-On-AI-Engineering/OCR/medical_prescription_digitizer->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```**Windows**@@ -92,15 +78,9 @@ Patient: John Smith Date: 04/18/2026Dr. Sarah Lee, MDRx:-<<<<<<< HEAD-1. Amoxicillin 500mg — TID x 7 days-2. Ibuprofen 400mg — BID PRN pain-3. [illegible] 10mg — QD-=======1. Amoxicillin 500mg, TID x 7 days2. Ibuprofen 400mg, BID PRN pain3. [illegible] 10mg, QD->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```**Structured output:**@@ -113,11 +93,7 @@ Date 04/18/2026Medications✅ Amoxicillin 500 mg · three times daily · 7 days [RxNorm ID: 723]✅ Ibuprofen 400 mg · twice daily · as needed [RxNorm ID: 5640]-<<<<<<< HEAD-⚠️ [illegible] 10 mg · once daily Drug name not found in RxNorm — possible misread-=======⚠️ [illegible] 10 mg · once daily Drug name not found in RxNorm, possible misread->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4aIllegible fields• Medication 3 drug name unclear@@ -133,21 +109,14 @@ Illegible fields```textmedical-prescription-digitizer/-<<<<<<< HEAD-├── app.py # Streamlit UI — upload, display, and orchestration-=======├── app.py # Streamlit UI: upload, display, and orchestration->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a├── extractor.py # Sends image to Mistral Large 3 and returns a Prescription object├── schemas.py # Pydantic models: Prescription and Medication├── validator.py # Queries RxNorm API to validate each drug name├── requirements.txt # Python dependencies└── .env.example # Environment variable template```-<<<<<<< HEAD-=======---[Back to top](#medical-prescription-digitizer)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/ai_agents/agent_discovery_agent/README.md b/ai_agents/agent_discovery_agent/README.mdindex c608ace..3c27af2 100644--- a/ai_agents/agent_discovery_agent/README.md+++ b/ai_agents/agent_discovery_agent/README.md@@ -8,22 +8,14 @@## Overview-<<<<<<< HEAD-Instead of manually browsing five separate agent registries, this agent lets you ask in plain English — "find code review agents", "show me trading bots on Virtuals", "what MCP servers handle databases?" — and get structured results back in seconds.-=======Instead of manually browsing five separate agent registries, this agent lets you ask in plain English: "find code review agents", "show me trading bots on Virtuals", "what MCP servers handle databases?" It returns structured results in seconds.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4aThe agent connects to the [Registry Broker API](https://hol.org/registry/docs), a universal index that abstracts NANDA, MCP, Virtuals Protocol, A2A, and ERC-8004 into a single interface. No registry-specific integrations needed.## Features- **Universal Search:** Query AI agents across 5 registries with a single natural language request-<<<<<<< HEAD-- **Agent Details:** Full metadata for any agent — capabilities, endpoints, trust score, and verification status-=======- **Agent Details:** Full metadata for any agent including capabilities, endpoints, trust score, and verification status->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a- **Similar Agents:** Find alternatives and compare agents with similar functionality- **Faceted Browsing:** Explore available categories, registries, and capability filters- **Streamlit Chat UI:** Dark-themed conversational interface with example queries and session history@@ -44,23 +36,15 @@ The agent connects to the [Registry Broker API](https://hol.org/registry/docs),|---|---|| LLM | Gemini 3 Flash (`gemini-3-flash-preview`) || Agent SDK | [Google GenAI SDK](https://github.com/googleapis/python-genai) (`google-genai`) |-<<<<<<< HEAD-| Registry API | [Registry Broker API](https://hol.org/registry/docs) — public, no key required |-=======| Registry API | [Registry Broker API](https://hol.org/registry/docs) (public, no key required) |->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a| HTTP client | httpx || UI | Streamlit |## Prerequisites- Python 3.10 or later-<<<<<<< HEAD-- A Google API key — get one free at [aistudio.google.com](https://aistudio.google.com)-=======- [uv](https://docs.astral.sh/uv/getting-started/installation/) (Python package manager)- A Google API key. Get one free at [aistudio.google.com](https://aistudio.google.com)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Installation@@ -79,15 +63,12 @@ cp .env.example .envOpen `.env` and add your Google API key.-<<<<<<< HEAD-=======**Install dependencies**```bashuv sync```->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Usage```bashdiff --git a/ai_agents/ai_travel_planning_agent/README.md b/ai_agents/ai_travel_planning_agent/README.mdindex 60003ff..f709ec5 100644--- a/ai_agents/ai_travel_planning_agent/README.md+++ b/ai_agents/ai_travel_planning_agent/README.md@@ -1,16 +1,8 @@-<<<<<<< HEAD-=======<a id="top"></a>->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a# AI Travel Planning Agent> Multi-agent travel planner that turns a single natural language request into a complete trip plan with flights, hotels, and a day-by-day itinerary.-<<<<<<< HEAD-## Overview--The AI Travel Planning Agent uses a root Google ADK agent to coordinate three specialist sub-agents — Flight Agent, Hotel Agent, and Itinerary Agent. Each sub-agent independently searches the web in real time, and the root agent combines their results into one cohesive travel plan. Users interact through a Streamlit chat interface and can ask follow-up questions within the same conversational session.-=======## Demo@@ -18,7 +10,6 @@ The AI Travel Planning Agent uses a root Google ADK agent to coordinate three sp## OverviewThe AI Travel Planning Agent uses a root Google ADK agent to coordinate three specialist sub-agents: a Flight Agent, a Hotel Agent, and an Itinerary Agent. Each sub-agent independently searches the web in real time, and the root agent combines their results into one cohesive travel plan. Users interact through a Streamlit chat interface and can ask follow-up questions within the same conversational session.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Features@@ -26,22 +17,14 @@ The AI Travel Planning Agent uses a root Google ADK agent to coordinate three sp- Parallel specialist agents for flights, hotels, and itineraries- Real-time web search via Tavily on every query- Nearby place discovery using OpenStreetMap/Nominatim (no extra API key)-<<<<<<< HEAD-- Multi-turn conversation — ask follow-ups after the initial plan-=======- Multi-turn conversation, so you can ask follow-ups after the initial plan->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Tech Stack| Layer | Technology ||---|---|| Agent framework | Google ADK (`google-adk`) |-<<<<<<< HEAD-| LLM | Gemini 3 Flash (`gemini-3-flash-preview`) |-=======| LLM | Gemini 3.5 Flash (`gemini-3.5-flash`) |->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a| Web search | Tavily Search API || Location data | geopy + Nominatim (OpenStreetMap) || UI | Streamlit |@@ -134,14 +117,9 @@ ai-travel-planning-agent/├── tools.py # Tavily search and Nominatim location tools├── requirements.txt # Python dependencies├── .env.example # Environment variable template-<<<<<<< HEAD-└── .env # Your local API keys (git-ignored)-```-=======├── .env # Your local API keys (git-ignored)└── assets/└── demo.png # Demo screenshot```[Back to top](#top)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/ai_agents/cal_scheduling_agent/README.md b/ai_agents/cal_scheduling_agent/README.mdindex b045484..8810e99 100644--- a/ai_agents/cal_scheduling_agent/README.md+++ b/ai_agents/cal_scheduling_agent/README.md@@ -1,10 +1,6 @@# Cal Scheduling Agent-<<<<<<< HEAD-> A conversational scheduling assistant that manages Cal.com appointments through natural language — check availability, book, reschedule, and cancel, with automatic timezone handling. Powered by Gemini 3 Flash and Streamlit.-=======> A conversational scheduling assistant that manages Cal.com appointments through natural language. Check availability, book, reschedule, and cancel with automatic timezone handling. Powered by Gemini 3 Flash and Streamlit.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Demo@@ -12,11 +8,7 @@## Overview-<<<<<<< HEAD-Instead of logging into Cal.com and manually navigating availability calendars, this agent lets you ask in plain English — "what slots are free next week?", "book a meeting with Sarah for Tuesday at 3pm GMT", "cancel my appointment on Friday" — and handles everything through a conversational interface.-=======Instead of logging into Cal.com and manually navigating availability calendars, this agent lets you ask in plain English: "what slots are free next week?", "book a meeting with Sarah for Tuesday at 3pm GMT", "cancel my appointment on Friday". It handles everything through a conversational interface.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4aThe agent connects to the [Cal.com REST API](https://cal.com/docs/api-reference) to read availability, create bookings, and manage existing appointments in real time.@@ -41,12 +33,8 @@ The agent connects to the [Cal.com REST API](https://cal.com/docs/api-reference)## Prerequisites- Python 3.10 or later-<<<<<<< HEAD-- A Google API key — get one free at [aistudio.google.com](https://aistudio.google.com)-=======- [uv](https://docs.astral.sh/uv/getting-started/installation/) (Python package manager)- A Google API key. Get one free at [aistudio.google.com](https://aistudio.google.com)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a- A Cal.com account with API access- A Cal.com Event Type ID@@ -67,15 +55,12 @@ cp .env.example .envOpen `.env` and add your credentials.-<<<<<<< HEAD-=======**Install dependencies**```bashuv sync```->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Usage```bash@@ -103,11 +88,7 @@ What's open next Monday morning?|---|---|| Google API Key | [aistudio.google.com](https://aistudio.google.com) || Cal.com API Key | [cal.com/settings/developer/api-keys](https://app.cal.com/settings/developer/api-keys) |-<<<<<<< HEAD-| Event Type ID | Your Cal.com dashboard — visible in the URL when editing an event type |-=======| Event Type ID | Your Cal.com dashboard (visible in the URL when editing an event type) |->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Environment Variablesdiff --git a/ai_agents/competitive_intelligence_agent/README.md b/ai_agents/competitive_intelligence_agent/README.mdindex b727d81..3b9c89a 100644--- a/ai_agents/competitive_intelligence_agent/README.md+++ b/ai_agents/competitive_intelligence_agent/README.md@@ -1,9 +1,5 @@# Competitive Intelligence Agent-<<<<<<< HEAD-A multi-agent AI system that generates strategic sales battlecards by analyzing competitors through the unique lens of your own business context.--=======> Generate strategic sales battlecards by analyzing competitors through the unique lens of your own business context.A multi-agent AI system that generates strategic sales battlecards by analyzing competitors through the unique lens of your own business context.@@ -12,16 +8,11 @@ A multi-agent AI system that generates strategic sales battlecards by analyzing->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## OverviewThe **Competitive Intelligence Agent** solves the "generic research" problem by moving away from broad, impersonal reports. Instead of searching the web for everything about a competitor, this system uses specialized AI agents to analyze a competitor specifically in relation to *your* company's value proposition, your customers' specific pain points, and your strategic sales goals.-<<<<<<< HEAD-It uses **CrewAI** to orchestrate specialized agents—a Market Scout, a Product Strategist, and a Battlecard Author—to research, compare, and synthesize actionable sales intelligence.-=======It uses **CrewAI** to orchestrate three specialized agents that research, compare, and synthesize actionable sales intelligence: a Market Scout, a Product Strategist, and a Battlecard Author.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4aThis tool is designed for:- **Sales Teams:** Who need immediate, punchy arguments to win against specific competitors.@@ -55,13 +46,8 @@ Before you begin, ensure you have:- Python 3.12 or higher- [uv](https://github.com/astral-sh/uv) (Recommended for dependency management)- API keys for:-<<<<<<< HEAD- - [ ] Google AI Studio (for Gemini/Gemma)- - [ ] Tavily Search API-=======- [Google AI Studio](https://aistudio.google.com) for Gemini/Gemma (free tier available)- [Tavily Search API](https://tavily.com) (free tier available)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Installation@@ -115,11 +101,8 @@ competitive_intelligence_agent/├── .env.example # Template for API keys├── pyproject.toml # uv project configuration├── uv.lock # Locked dependencies for consistency-<<<<<<< HEAD-=======├── assets/│ └── demo.png # Demo screenshot->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a└── .venv/ # Virtual environment (auto-generated)```diff --git a/ai_agents/daily-news-digest/README.md b/ai_agents/daily-news-digest/README.mdindex 6b4970c..aa67e24 100644--- a/ai_agents/daily-news-digest/README.md+++ b/ai_agents/daily-news-digest/README.md@@ -2,8 +2,6 @@Automated daily digest from 92 Karpathy-curated tech blogs, delivered to Telegram at 8 AM every morning. MiniMax M2.7 scores every article fetched in the last 24 hours and picks the 3 most significant stories.-<<<<<<< HEAD-=======## Architecture@@ -12,7 +10,6 @@ Automated daily digest from 92 Karpathy-curated tech blogs, delivered to Telegra->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## How it works```text@@ -21,11 +18,7 @@ Automated daily digest from 92 Karpathy-curated tech blogs, delivered to Telegra1. `scripts/fetch_rss.py` fetches all feeds in parallel and keeps only articles published in the last 24 hours2. `skill.py` sends the article list to MiniMax M2.7, which scores each one and returns the top 3 as structured JSON-<<<<<<< HEAD-3. Articles are grouped into categories — **Breaking**, **Important**, or **Notable** — and formatted as a Telegram message-=======3. Articles are grouped into categories (**Breaking**, **Important**, or **Notable**) and formatted as a Telegram message->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a4. Empty categories are omitted automatically@@ -38,15 +31,6 @@ Automated daily digest from 92 Karpathy-curated tech blogs, delivered to Telegra## Tech Stack**Models & Frameworks:**-<<<<<<< HEAD-- MiniMax M2.7 — article scoring and ranking-- OpenClaw — skill orchestration and cron scheduling--**Libraries:**-- `feedparser` — RSS feed parsing-- `python-dotenv` — environment variable management-- `requests` — HTTP requests for RSS feed fetching-=======- MiniMax M2.7: article scoring and ranking- OpenClaw: skill orchestration and cron scheduling@@ -54,7 +38,6 @@ Automated daily digest from 92 Karpathy-curated tech blogs, delivered to Telegra- `feedparser`: RSS feed parsing- `python-dotenv`: environment variable management- `requests`: HTTP requests for RSS feed fetching->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Prerequisites@@ -126,11 +109,7 @@ cp -r . ~/.openclaw/skills/daily-ai-news-digestopenclaw cron add "0 8 * * *" skill.py```-<<<<<<< HEAD-This schedules the digest to run every day at **08:00 UTC**. Adjust the cron expression to change the time — for example `"0 7 * * 1-5"` for weekdays at 07:00 UTC.-=======This schedules the digest to run every day at **08:00 UTC**. Adjust the cron expression to change the time. For example, `"0 7 * * 1-5"` schedules it for weekdays at 07:00 UTC.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Running manually@@ -141,20 +120,6 @@ python skill.py## Output format```text-<<<<<<< HEAD-🗞️ Daily AI Digest — April 1, 2026--🔴 BREAKING-🔴 Article Title — Summary sentence one. Sentence two.-Source: Blog Name | [Read more](https://...)--🟡 IMPORTANT-🟡 Article Title — Summary sentence one. Sentence two.-Source: Blog Name | [Read more](https://...)--🔵 NOTABLE-🔵 Article Title — Summary sentence one. Sentence two.-=======🗞️ Daily AI Digest: April 1, 2026🔴 BREAKING@@ -167,7 +132,6 @@ Source: Blog Name | [Read more](https://...)🔵 NOTABLE🔵 Article Title: Summary sentence one. Sentence two.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4aSource: Blog Name | [Read more](https://...)```@@ -175,11 +139,7 @@ Source: Blog Name | [Read more](https://...)```textdaily-ai-news-digest/-<<<<<<< HEAD-├── skill.py # Main pipeline — fetch, score, format, send-=======├── skill.py # Main pipeline: fetch, score, format, send->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a├── scripts/│ └── fetch_rss.py # Parallel RSS fetcher with 24h date filter├── sources.json # 92 Karpathy-curated RSS feed sources@@ -191,15 +151,6 @@ daily-ai-news-digest/## Customisation-<<<<<<< HEAD-**Change the number of top articles** — edit the system prompt in `skill.py` and update the instruction from "top 3" to your preferred number.--**Change the lookback window** — the `--hours` argument in `fetch_articles()` defaults to 24. Pass a different value to cast a wider or narrower net.--**Add or remove sources** — edit `sources.json`. Each entry needs a `name`, `xmlUrl` (the feed URL), and `htmlUrl` (the site URL).--**Change the schedule** — update the cron expression in the `trigger` field of `SKILL.md` and re-register with `openclaw cron add`.-=======**Change the number of top articles**: edit the system prompt in `skill.py` and update the instruction from "top 3" to your preferred number.**Change the lookback window**: the `--hours` argument in `fetch_articles()` defaults to 24. Pass a different value to cast a wider or narrower net.@@ -207,4 +158,3 @@ daily-ai-news-digest/**Add or remove sources**: edit `sources.json`. Each entry needs a `name`, `xmlUrl` (the feed URL), and `htmlUrl` (the site URL).**Change the schedule**: update the cron expression in the `trigger` field of `SKILL.md` and re-register with `openclaw cron add`.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/ai_agents/eagle_eye/README.md b/ai_agents/eagle_eye/README.mdindex 2638cfe..60f06e8 100644--- a/ai_agents/eagle_eye/README.md+++ b/ai_agents/eagle_eye/README.md@@ -1,16 +1,11 @@-<<<<<<< HEAD-=======<a id="top"></a>->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a# 🦅 Eagle EyeAI-powered GitHub PR review agent using [OpenClaw](https://openclaw.dev), MiniMax M2.7, and GitHub MCP. Triggered via Telegram.----<<<<<<< HEAD-=======## ✅ Prerequisites- [OpenClaw](https://openclaw.dev) installed@@ -25,7 +20,6 @@ AI-powered GitHub PR review agent using [OpenClaw](https://openclaw.dev), MiniMa---->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## 📽️ Project Overview**Eagle Eye** is a Telegram-triggered code review assistant that analyzes GitHub pull requests and delivers structured feedback directly to your chat.@@ -119,10 +113,7 @@ The agent will respond with the review and a prompt:- **Scope**: Does not see CI/CD logs or test results unless pasted into the chat.- **Large PRs**: For very large changes, the agent prioritizes security and correctness.- **Stateless**: Each Telegram session starts fresh; previous review context is not retained unless manually provided.-<<<<<<< HEAD-=======---[Back to top](#top)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/ai_agents/finagent/README.md b/ai_agents/finagent/README.mdindex 8d0e40b..bf50862 100644--- a/ai_agents/finagent/README.md+++ b/ai_agents/finagent/README.md@@ -1,14 +1,10 @@# Finagent - AI-Powered Financial Analysis Tool-<<<<<<< HEAD-A sophisticated financial analysis system that leverages Google's Gemini AI and real-time market data to provide comprehensive stock analysis, automated code generation, and investment insights.-=======A sophisticated financial analysis system that leverages Mistral Small 4 (mistral-small-latest) and real-time market data to provide comprehensive stock analysis, automated code generation, and investment insights.## Demo->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Features@@ -17,20 +13,13 @@ A sophisticated financial analysis system that leverages Mistral Small 4 (mistra- **Automated Code Generation**: Creates executable Python code for financial analysis- **News Integration**: Incorporates latest market news into analysis- **MCP Server**: Modern Model Context Protocol server for Claude Desktop integration-<<<<<<< HEAD- **Professional Visualizations**: Generates matplotlib charts and technical analysis plots-=======->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a- **Risk Assessment**: Provides balanced investment recommendations with proper disclaimers## Prerequisites- Python 3.8+-<<<<<<< HEAD-- Google Gemini API key-=======- Mistral API key (for the Mistral Small 4 / mistral-small-latest model)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a- Claude Desktop (for MCP integration)- Firecrawl API key (optional, for enhanced news features)@@ -59,36 +48,22 @@ cd finagent2. **Install required packages**:```bash-<<<<<<< HEAD-pip install google-generativeai yfinance pandas matplotlib numpy mcp python-dotenv-=======pip install -r requirements.txt->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```3. **Set up environment variables**:Create a `.env` file in the project root:```env-<<<<<<< HEAD-GEMINI_API_KEY=your_gemini_api_key_here-=======MISTRAL_API_KEY=your_mistral_api_key_here->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4aFIRECRAWL_API_KEY=your_firecrawl_api_key_here # Optional```## API Keys Setup-<<<<<<< HEAD-### Gemini API Key (Required)--1. Visit [Google AI Studio](https://makersuite.google.com/app/apikey)-=======### Mistral API Key (Required)1. Visit [Mistral Console](https://console.mistral.ai/api-keys)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a2. Create a new API key3. Add it to your `.env` file@@ -125,11 +100,7 @@ FIRECRAWL_API_KEY=your_firecrawl_api_key_here # Optional"command": "python","args": ["/absolute/path/to/finagent/main.py"],"env": {-<<<<<<< HEAD- "GEMINI_API_KEY": "your_gemini_api_key_here",-======="MISTRAL_API_KEY": "your_mistral_api_key_here",->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a"FIRECRAWL_API_KEY": "your_firecrawl_api_key_here"}}@@ -200,23 +171,12 @@ python main.pyfrom financial_agents import FinancialAnalysisTeamteam = FinancialAnalysisTeam(-<<<<<<< HEAD- gemini_api_key="your_gemini_key",- firecrawl_api_key="your_firecrawl_key"-=======mistral_api_key="your_mistral_key"->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a)result = team.analyze("Analyze Apple stock over the last 6 months")-<<<<<<< HEAD-print(f"Insights: {result.insights}")-print(f"Recommendations: {result.recommendations}")-print(f"Generated Code:\n{result.code}")-=======print(result)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```## Example Queries@@ -234,11 +194,7 @@ The system understands natural language queries:### Core Components1. **FinancialAnalysisTeam**: Main orchestrator class-<<<<<<< HEAD-2. **GeminiAgent**: Base agent class using Gemini AI-=======2. **MistralAgent**: Base agent class using Mistral Small 4 (mistral-small-latest)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a3. **FinancialTools**: Data acquisition utilities4. **MCP Server**: Model Context Protocol server for Claude Desktop@@ -253,10 +209,7 @@ The system understands natural language queries:- **Technical Indicators**: RSI, MACD, Moving averages, Bollinger bands- **Price Analysis**: Trend analysis, support/resistance levels- **Risk Metrics**: Volatility calculations, drawdown analysis-<<<<<<< HEAD- **Visualizations**: Professional charts with technical overlays-=======->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a- **News Integration**: Latest market sentiment and news impact- **Investment Recommendations**: Buy/Hold/Sell with rationale@@ -281,11 +234,7 @@ The system understands natural language queries:2. **Import Errors**:```bash-<<<<<<< HEAD-pip install google-generativeai yfinance pandas mcp python-dotenv-=======pip install -r requirements.txt->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```3. **API Key Issues**:@@ -343,8 +292,4 @@ For questions and support:----<<<<<<< HEAD-**Made with Google Gemini AI & Claude Desktop**-=======**Made with Mistral Small 4 & Claude Desktop**->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/ai_agents/github_intelligence_agent/README.md b/ai_agents/github_intelligence_agent/README.mdindex 03ee596..51b06b3 100644--- a/ai_agents/github_intelligence_agent/README.md+++ b/ai_agents/github_intelligence_agent/README.md@@ -6,11 +6,7 @@## Overview-<<<<<<< HEAD-GitHub Intelligence Agent connects Gemini 3 Flash to GitHub's official MCP server through Haystack, giving you a conversational interface to the entire GitHub API. Ask it anything — surface trending repositories, profile a contributor, summarise open issues, or explore a codebase — and it figures out which tools to call on its own.-=======GitHub Intelligence Agent connects Gemini 3 Flash to GitHub's official MCP server through Haystack, giving you a conversational interface to the entire GitHub API. Ask it anything: surface trending repositories, profile a contributor, summarise open issues, or explore a codebase. It figures out which tools to call on its own.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4aThe agent uses Haystack's **SearchableToolset** to dynamically discover tools from GitHub's catalog of 40+ API endpoints. Instead of loading every tool schema upfront (which would blow the context limit), it searches for relevant tools by keyword and loads only what it needs. This keeps the context lean and the agent focused.@@ -26,19 +22,6 @@ The agent uses Haystack's **SearchableToolset** to dynamically discover tools fr## Tech Stack**Frameworks and Libraries:**-<<<<<<< HEAD-- [Haystack](https://haystack.deepset.ai/) — agent framework and tool orchestration-- [Streamlit](https://streamlit.io/) — chat UI with streaming support--**Models and APIs:**-- [Gemini 3 Flash](https://aistudio.google.com/) via Google AI — reasoning and tool calling-- [GitHub MCP Server](https://api.githubcopilot.com/mcp/) — official GitHub API over MCP--**Key Haystack Components:**-- `MCPToolset` — connects to GitHub's MCP server-- `SearchableToolset` — dynamically discovers tools to keep context lean-- `GoogleAIGeminiChatGenerator` — Gemini 3 Flash integration-=======- [Haystack](https://haystack.deepset.ai/): agent framework and tool orchestration- [Streamlit](https://streamlit.io/): chat UI with streaming support@@ -50,20 +33,14 @@ The agent uses Haystack's **SearchableToolset** to dynamically discover tools fr- `MCPToolset`: connects to GitHub's MCP server- `SearchableToolset`: dynamically discovers tools to keep context lean- `GoogleAIGeminiChatGenerator`: Gemini 3 Flash integration->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Prerequisites- Python 3.11 or higher- [uv](https://docs.astral.sh/uv/) (recommended) or pip- API keys for:-<<<<<<< HEAD- - [ ] Google Gemini — free at https://aistudio.google.com- - [ ] GitHub Personal Access Token — read-only permissions are enough-=======- [ ] Google Gemini (free at https://aistudio.google.com)- [ ] GitHub Personal Access Token (read-only permissions are enough)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a### Getting a GitHub PAT@@ -89,15 +66,12 @@ cd Hands-On-AI-Engineering/ai_agents/github_intelligence_agentuv sync```-<<<<<<< HEADOr with pip:```bashpip install -r requirements.txt```-=======->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a### 3. Set Up Environment Variables```bashdiff --git a/ai_agents/multi_agent_financial_analyst/README.md b/ai_agents/multi_agent_financial_analyst/README.mdindex 4aae820..beb2602 100644--- a/ai_agents/multi_agent_financial_analyst/README.md+++ b/ai_agents/multi_agent_financial_analyst/README.md@@ -1,13 +1,8 @@-<<<<<<< HEAD-=======<a id="top"></a>->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a# 🎯 Multi-Agent AI Financial AnalystA powerful multi-agent system that performs comprehensive stock analysis and generates detailed financial reports.-<<<<<<< HEAD-=======## Demo@@ -25,7 +20,6 @@ A powerful multi-agent system that performs comprehensive stock analysis and gen- Python 3.10 or higher- An Orq.ai account and API key, available at https://orq.ai->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Features- Stock Analysis Agent: Performs thorough analysis of stocks using fundamental and technical indicators@@ -47,15 +41,9 @@ A powerful multi-agent system that performs comprehensive stock analysis and genpip install -r requirements.txt```-<<<<<<< HEAD-3. Create a `.env` file in the root directory and add your SambaNova API key:-```bash-SAMBANOVA_API_KEY=your_api_key_here-=======3. Create a `.env` file in the root directory and add your Orq.ai API key:```bashORQ_API_KEY=your_orq_api_key_here->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```## Usage@@ -93,10 +81,6 @@ Contributions are welcome! Please feel free to submit a Pull Request.## License-<<<<<<< HEAD-This project is licensed under the MIT License - see the LICENSE file for details.-=======This project is licensed under the MIT License - see the LICENSE file for details.[Back to top](#top)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/ai_agents/multi_agent_research_assistant_ag2/README.md b/ai_agents/multi_agent_research_assistant_ag2/README.mdindex 11a5a61..198e5c0 100644--- a/ai_agents/multi_agent_research_assistant_ag2/README.md+++ b/ai_agents/multi_agent_research_assistant_ag2/README.md@@ -1,21 +1,3 @@-<<<<<<< HEAD-# Multi-Agent Research Assistant with AG2--A production-grade multi-agent research pipeline using [AG2](https://github.com/ag2ai/ag2)-(formerly AutoGen). Three specialists collaborate under GroupChat with LLM-driven speaker-selection to research any topic and produce a structured Markdown report.--## Features-- Multi-agent collaboration (researcher, analyst, writer) under GroupChat-- LLM-driven dynamic speaker selection — no hardcoded turn order-- AG2's `register_function(caller=, executor=)` tool registration pattern-- OpenAI-compatible endpoint (works with SambaNova, Azure OpenAI, local models via Ollama)-- Download report as Markdown--## Prerequisites-- Python 3.10+-- OpenAI API key (or compatible endpoint)-=======<a id="top"></a># Multi-Agent Research Assistant with AG2@@ -38,17 +20,12 @@ and produce a structured Markdown report, powered by Mistral Small 4## Prerequisites- Python 3.10+- Mistral API key from [console.mistral.ai](https://console.mistral.ai/api-keys)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Installation```bashcd multi_agent_research_assistant_ag2pip install -r requirements.txt-<<<<<<< HEAD-cp .env.example .env # add your API key-=======cp .env.example .env # add your Mistral API key->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```## Usage@@ -61,14 +38,6 @@ streamlit run research_assistant.py1. **Researcher** searches the web using DuckDuckGo API and summarises findings2. **Analyst** critically reviews the research and identifies gaps3. **Writer** synthesises all inputs into a structured Markdown report-<<<<<<< HEAD-4. **GroupChatManager** uses LLM-based speaker selection to orchestrate the conversation--## AG2 Concepts Demonstrated-- `GroupChat` with `speaker_selection_method="auto"`-- `register_function(caller=, executor=)` — separates tool description from execution-- `UserProxyAgent` with `code_execution_config` — built-in code execution sandbox-=======4. **GroupChatManager** orchestrates the analyst and writer in round-robin order## AG2 Concepts Demonstrated@@ -76,7 +45,6 @@ streamlit run research_assistant.py- `register_function(caller=, executor=)`, which separates tool description from execution- `UserProxyAgent` with `code_execution_config`, providing a built-in code execution sandbox- Native Mistral integration via `{"api_type": "mistral", "model": "mistral-small-latest", ...}` in `LLMConfig`, instead of pointing an OpenAI-compatible `base_url` at Mistral's endpoint->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a> **Security note:** `use_docker=False` in `code_execution_config` means any agent-generated> code runs directly in your process. For production use, set `use_docker=True` or run in@@ -84,11 +52,7 @@ streamlit run research_assistant.py## Running Tests-<<<<<<< HEAD-Tests are fully mocked — no API keys or network access required.-=======Tests are fully mocked and require no API keys or network access.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```bashpip install pytest@@ -109,10 +73,7 @@ multi_agent_research_assistant_ag2/├── requirements.txt└── .env.example```-<<<<<<< HEAD-=======---[Back to top](#top)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/ai_agents/research_team/README.md b/ai_agents/research_team/README.mdindex d09e96a..54d2863 100644--- a/ai_agents/research_team/README.md+++ b/ai_agents/research_team/README.md@@ -8,11 +8,7 @@Research Team is a two-agent AI system that tackles deep research questions by splitting work between specialists. Seek searches the web for external information while Scout looks through local documents. A team leader powered by **MiniMax M2.5** coordinates both, then synthesises their findings into a clean, structured report.-<<<<<<< HEAD-You give it a question like "Research Anthropic — their products, key people, and recent developments" and it comes back with an executive summary, sourced key findings, and open questions.-=======You give it a question like "Research Anthropic: their products, key people, and recent developments" and it comes back with an executive summary, sourced key findings, and open questions.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Features@@ -20,41 +16,24 @@ You give it a question like "Research Anthropic: their products, key people, and- **Scout agent**: Reads local files from the `knowledge/` directory to surface internal context- **Team leader**: Delegates work to each specialist, cross-references findings, and produces a unified report- **Streaming UI**: Report appears progressively in the Gradio interface as the team works-<<<<<<< HEAD-- **File upload**: Upload `.txt`, `.md`, or `.pdf` files directly from the UI — Scout reads them instantly on the next query-=======- **File upload**: Upload `.txt`, `.md`, or `.pdf` files directly from the UI. Scout reads them instantly on the next query.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Tech Stack**Frameworks and Libraries:**-<<<<<<< HEAD-- [Agno](https://github.com/agno-agi/agno) — agent and team framework-- [Gradio](https://www.gradio.app/) — web UI with streaming support--**Models and APIs:**-- [MiniMax M2.5](https://openrouter.ai/minimax/minimax-m2.5) via [OpenRouter](https://openrouter.ai/) — team leader and both agents-- [DuckDuckGo Search](https://pypi.org/project/duckduckgo-search/) — web search for Seek-=======- [Agno](https://github.com/agno-agi/agno): agent and team framework- [Gradio](https://www.gradio.app/): web UI with streaming support**Models and APIs:**- [MiniMax M2.5](https://openrouter.ai/minimax/minimax-m2.5) via [OpenRouter](https://openrouter.ai/): team leader and both agents- [DuckDuckGo Search](https://pypi.org/project/duckduckgo-search/): web search for Seek->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Prerequisites- Python 3.11 or higher- [uv](https://docs.astral.sh/uv/) (recommended) or pip- API keys for:-<<<<<<< HEAD- - [ ] OpenRouter — get yours at https://openrouter.ai-=======- [ ] OpenRouter (get yours at https://openrouter.ai)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Installation@@ -71,15 +50,12 @@ cd Hands-On-AI-Engineering/ai_agents/research_teamuv sync```-<<<<<<< HEADOr with pip:```bashpip install -r requirements.txt```-=======->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a### 3. Set Up Environment Variables```bash@@ -107,11 +83,7 @@ Then open http://localhost:7860 in your browser.Enter a research query like:```-<<<<<<< HEAD-Research Anthropic — their products, key people, and recent developments-=======Research Anthropic: their products, key people, and recent developments->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```The team will search the web, check local docs, and stream back a structured report.@@ -140,10 +112,6 @@ The team leader receives a research query and breaks it into two tracks. It deleOnce both agents respond, the leader cross-references their findings, flags anything contradictory, and writes a final report with an executive summary, sourced key findings, and open questions.-<<<<<<< HEAD-The Gradio app uses the same stream-buffering technique as the other projects in this repo — output is held until the first markdown heading appears, so the UI never shows raw model narration.-=======The Gradio app uses the same stream-buffering technique as the other projects in this repo. Output is held until the first markdown heading appears, so the UI never shows raw model narration.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a[Back to Top](#research-team)diff --git a/ai_agents/smolagents_code_agent/README.md b/ai_agents/smolagents_code_agent/README.mdindex 8d279b6..b9281ab 100644--- a/ai_agents/smolagents_code_agent/README.md+++ b/ai_agents/smolagents_code_agent/README.md@@ -4,11 +4,7 @@## Overview-<<<<<<< HEAD-Smolagents Code Agent wires together HuggingFace's **smolagents** `CodeAgent` and **Mistral Small** (via LiteLLM) into a Gradio web app. You type a task, the agent writes and executes Python code using DuckDuckGo and Wikipedia, and every reasoning step appears in the UI as it happens — no waiting for a final answer to see what the model was thinking.-=======Smolagents Code Agent wires together HuggingFace's **smolagents** `CodeAgent` and **Mistral Small** (via LiteLLM) into a Gradio web app. You type a task, the agent writes and executes Python code using DuckDuckGo and Wikipedia, and every reasoning step appears in the UI as it happens. No waiting for a final answer to see what the model was thinking.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Demo@@ -16,31 +12,18 @@ Smolagents Code Agent wires together HuggingFace's **smolagents** `CodeAgent` an## Features-<<<<<<< HEAD-- **Real-time trace streaming** — every Think, Act, and Observe step appears in the UI as the agent works, powered by `step_callbacks` and a background thread queue-- **Code-first reasoning** — the agent writes and executes Python code at each step rather than calling fixed tool APIs-- **Two built-in tools** — `DuckDuckGoSearchTool` for live web search and a custom `WikipediaTool` that fetches 5-sentence article summaries-- **Clean final answer** — the agent's conclusion is extracted and displayed separately from the full reasoning trace-- **Swappable LLM** — change one line in `app.py` to switch from Mistral Small to DeepSeek V3 Flash via OpenRouter (see [Usage](#usage))-- **Run/Clear controls** — a spinner confirms the agent is active; Clear resets all outputs instantly-=======- **Real-time trace streaming**: every Think, Act, and Observe step appears in the UI as the agent works, powered by `step_callbacks` and a background thread queue- **Code-first reasoning**: the agent writes and executes Python code at each step rather than calling fixed tool APIs- **Two built-in tools**: `DuckDuckGoSearchTool` for live web search and a custom `WikipediaTool` that fetches 5-sentence article summaries- **Clean final answer**: the agent's conclusion is extracted and displayed separately from the full reasoning trace- **Swappable LLM**: change one line in `app.py` to switch from Mistral Small to DeepSeek V3 Flash via OpenRouter (see [Usage](#usage))- **Run/Clear controls**: a spinner confirms the agent is active; Clear resets all outputs instantly->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Tech Stack| Layer | Technology ||---|---|-<<<<<<< HEAD-| Agent framework | [HuggingFace smolagents](https://github.com/huggingface/smolagents) — `CodeAgent` |-=======| Agent framework | [HuggingFace smolagents](https://github.com/huggingface/smolagents) (`CodeAgent`) |->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a| LLM | Mistral Small 4 (`mistral-small-latest`) via `LiteLLMModel` || Web search | `DuckDuckGoSearchTool` (bundled with smolagents) || Knowledge tool | Custom `WikipediaTool` using the `wikipedia` package |@@ -49,11 +32,7 @@ Smolagents Code Agent wires together HuggingFace's **smolagents** `CodeAgent` an## Prerequisites- Python 3.10 or later-<<<<<<< HEAD-- A Mistral API key — get one at [platform.mistral.ai](https://platform.mistral.ai)-=======- A Mistral API key. Get one at [platform.mistral.ai](https://platform.mistral.ai)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Installation@@ -130,8 +109,5 @@ smolagents-code-agent/└── assets/└── demo.png # Screenshot used in README```-<<<<<<< HEAD-=======[Back to Top](#smolagents-code-agent)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/ai_agents/startup_analyst/README.md b/ai_agents/startup_analyst/README.mdindex e5f4dac..95d0fe5 100644--- a/ai_agents/startup_analyst/README.md+++ b/ai_agents/startup_analyst/README.md@@ -23,21 +23,12 @@ The agent is powered by **MiniMax M2.5** (via OpenRouter) and uses Firecrawl to## Tech Stack**Frameworks and Libraries:**-<<<<<<< HEAD-- [Agno](https://github.com/agno-agi/agno) — agent framework-- [Gradio](https://www.gradio.app/) — web UI with streaming support--**Models and APIs:**-- [MiniMax M2.5](https://openrouter.ai/minimax/minimax-m2.5) via [OpenRouter](https://openrouter.ai/) — reasoning and report generation-- [Firecrawl](https://firecrawl.dev/) — website scraping and crawling-=======- [Agno](https://github.com/agno-agi/agno) for the agent framework- [Gradio](https://www.gradio.app/) for the web UI with streaming support**Models and APIs:**- [MiniMax M2.5](https://openrouter.ai/minimax/minimax-m2.5) via [OpenRouter](https://openrouter.ai/) for reasoning and report generation- [Firecrawl](https://firecrawl.dev/) for website scraping and crawling->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Prerequisites@@ -62,15 +53,12 @@ cd Hands-On-AI-Engineering/ai_agents/startup_analystuv sync```-<<<<<<< HEADOr with pip:```bashpip install -r requirements.txt```-=======->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a### 3. Set Up Environment Variables```bashdiff --git a/ai_agents/stock_portfolio_analyst/README.md b/ai_agents/stock_portfolio_analyst/README.mdindex d99ec35..83aeef6 100644--- a/ai_agents/stock_portfolio_analyst/README.md+++ b/ai_agents/stock_portfolio_analyst/README.md@@ -1,20 +1,12 @@# 📈 Stock Portfolio Analyst-<<<<<<< HEAD-> **Powered by [DeepSeek-V4-Flash](https://build.nvidia.com/deepseek-ai/deepseek-v4-flash) via NVIDIA API — fast, cost-efficient reasoning for real-time financial analysis**-=======> **Powered by [DeepSeek-V4-Flash](https://build.nvidia.com/deepseek-ai/deepseek-v4-flash) via NVIDIA API for fast, cost-efficient reasoning and real-time financial analysis**->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Overview-<<<<<<< HEAD-An AI-powered portfolio analysis agent that evaluates stock holdings using live market data. Enter your tickers, share counts, and average purchase prices, and the agent fetches real-time pricing and fundamentals via YFinance, searches for recent news via DuckDuckGo, and generates a comprehensive portfolio review — streamed live in the UI as it builds.-=======An AI-powered portfolio analysis agent that evaluates stock holdings using live market data. Enter your tickers, share counts, and average purchase prices, and the agent fetches real-time pricing and fundamentals via YFinance, searches for recent news via DuckDuckGo, and generates a comprehensive portfolio review, streamed live in the UI as it builds.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4aThe report covers P&L per position, portfolio-level metrics, concentration and valuation risk flags, sector breakdown, and specific rebalancing recommendations.@@ -38,11 +30,7 @@ The report covers P&L per position, portfolio-level metrics, concentration and v- [CalculatorTools](https://docs.agno.com/): Precise P&L and concentration calculations**Model:**-<<<<<<< HEAD-- **[DeepSeek-V4-Flash](https://build.nvidia.com/deepseek-ai/deepseek-v4-flash)** (`deepseek-ai/deepseek-v4-flash`) — fast and cost-efficient reasoning via the NVIDIA API-=======- **[DeepSeek-V4-Flash](https://build.nvidia.com/deepseek-ai/deepseek-v4-flash)** (`deepseek-ai/deepseek-v4-flash`): fast and cost-efficient reasoning via the NVIDIA API->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a**UI:**- [Gradio](https://www.gradio.app/): Interactive web interface with streaming markdown outputdiff --git a/audio/music_explorer/README.md b/audio/music_explorer/README.mdindex 1a0a8bd..2c375ce 100644--- a/audio/music_explorer/README.md+++ b/audio/music_explorer/README.md@@ -1,37 +1,11 @@# 🎧 Music Explorer-<<<<<<< HEAD-> **Powered by [Gemini 3 Flash](https://ai.google.dev/gemini-api/docs/audio) — ask anything about any audio file or YouTube video**-=======> **Powered by [Gemini 3 Flash](https://ai.google.dev/gemini-api/docs/audio), ask anything about any audio file or YouTube video**->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Overview-<<<<<<< HEAD-Music Explorer lets you analyze any audio through natural language. Upload a file or paste a YouTube URL, and ask questions — transcribe lyrics, identify instruments, detect emotion, break down track structure, or describe anything you hear. The conversation is multi-turn, so you can keep asking follow-ups without re-uploading.--Gemini 3 Flash handles the audio understanding entirely via the Gemini Files API — no local model, no GPU required.--## Features--- **Multi-turn chat** — ask follow-up questions about the same audio without re-uploading-- **YouTube support** — paste any YouTube URL to download and analyze the audio automatically-- **Five quick-analysis presets** — one click to run full description, transcription, emotion analysis, instrument identification, or track structure breakdown-- **Timestamp-aware responses** — Gemini can reference specific moments in the audio-- **Microphone input** — record directly in the browser for live audio analysis-- **No GPU needed** — runs entirely through the Gemini API--## What You Can Ask--- "Describe this track — genre, tempo, key, instruments, and mood"-- "Transcribe the lyrics with timestamps"-- "What emotion does this convey? Does it shift throughout?"-- "List every instrument and when each one enters"-- "Break down the structure — intro, verse, chorus — with timestamps"-=======Music Explorer lets you analyze any audio through natural language. Upload a file or paste a YouTube URL, and ask questions: transcribe lyrics, identify instruments, detect emotion, break down track structure, or describe anything you hear. The conversation is multi-turn, so you can keep asking follow-ups without re-uploading.Gemini 3 Flash handles the audio understanding entirely via the Gemini Files API, no local model and no GPU required.@@ -52,7 +26,6 @@ Gemini 3 Flash handles the audio understanding entirely via the Gemini Files API- "What emotion does this convey? Does it shift throughout?"- "List every instrument and when each one enters"- "Break down the structure (intro, verse, chorus) with timestamps"->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a- "What language is being spoken?"- "Summarize what's being said in this podcast clip"- "What chord progression is used in the chorus?"@@ -92,11 +65,7 @@ winget install ffmpeg```bashgit clone https://github.com/Sumanth077/Hands-On-AI-Engineering.git-<<<<<<< HEAD-cd Hands-On-AI-Engineering/audio/audio_intelligence-=======cd Hands-On-AI-Engineering/audio/music_explorer->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```### 2. Set Up Environment Variables@@ -129,11 +98,7 @@ Navigate to `http://localhost:7860`.1. **Upload an audio file** or paste a YouTube URL and click **Load YouTube Audio**2. **Type a question** or click a **Quick Analysis** preset-<<<<<<< HEAD-3. **Keep asking follow-ups** — the conversation is multi-turn, no need to re-upload-=======3. **Keep asking follow-ups**: the conversation is multi-turn, no need to re-upload->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## How It Works@@ -156,17 +121,10 @@ Audio file / YouTube URL## Project Structure```text-<<<<<<< HEAD-audio_intelligence/-├── app.py # Gradio UI and Gemini inference logic-├── assets/-│ └── demo.png # App screenshot-=======music_explorer/├── app.py # Gradio UI and Gemini inference logic├── assets/│ └── demo.gif # App demo->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a├── .env.example # API key template├── pyproject.toml # Dependencies (uv)└── README.mddiff --git a/multimodal/image_question_answering/README.md b/multimodal/image_question_answering/README.mdindex 4a0deb5..a563026 100644--- a/multimodal/image_question_answering/README.md+++ b/multimodal/image_question_answering/README.md@@ -4,11 +4,7 @@## Overview-<<<<<<< HEAD-Upload a PDF, select a page, and ask a natural-language question about its visual content. PyMuPDF renders each page into a high-quality image, which is sent alongside your question to Gemma 4 (`gemma-4-31b-it`) via the Gemini API. The model reasons over the rendered image — including charts, tables, diagrams, and figures — and returns a grounded answer in the Gradio interface.-=======Upload a PDF, select a page, and ask a natural-language question about its visual content. PyMuPDF renders each page into a high-quality image, which is sent alongside your question to Gemma 4 (`gemma-4-31b-it`) via the Gemini API. The model reasons over the rendered image, including charts, tables, diagrams, and figures, and returns a grounded answer in the Gradio interface.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Demo@@ -20,11 +16,7 @@ Upload a PDF, select a page, and ask a natural-language question about its visua- Page slider lets you navigate and preview any page before asking- Answers visual questions grounded in the actual rendered content (charts, tables, figures)- Gemma 4 thinking mode (`high`) for multi-step reasoning over complex layouts-<<<<<<< HEAD-- Clean two-column Gradio UI — page viewer on the left, Q&A on the right-=======- Clean two-column Gradio UI with the page viewer on the left and Q&A on the right->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Tech Stack@@ -96,11 +88,7 @@ Create a `.env` file in the project root with the following key:| Variable | Description ||---|---|-<<<<<<< HEAD-| `GOOGLE_API_KEY` | Gemini API key — obtain one at [aistudio.google.com](https://aistudio.google.com) |-=======| `GOOGLE_API_KEY` | Gemini API key; obtain one at [aistudio.google.com](https://aistudio.google.com) |->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```envGOOGLE_API_KEY=your_api_key_here@@ -115,10 +103,7 @@ image-question-answering/├── .env.example # Environment variable template└── requirements.txt```-<<<<<<< HEAD-=======---[Back to Top](#image-question-answering)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/multimodal/multimodal_rag/README.md b/multimodal/multimodal_rag/README.mdindex 3b84760..669bfd0 100644--- a/multimodal/multimodal_rag/README.md+++ b/multimodal/multimodal_rag/README.md@@ -36,10 +36,7 @@ For media files (images, audio, video), Gemini first extracts a text description## Prerequisites- Python 3.10 or later-<<<<<<< HEAD-=======- [uv](https://docs.astral.sh/uv/) for dependency management->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a- A Google API key. Get one free at [aistudio.google.com](https://aistudio.google.com)## Installation@@ -52,15 +49,12 @@ cp .env.example .envAdd your Google API key to `.env`.-<<<<<<< HEAD-=======Install dependencies:```bashuv sync```->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Usage```bash@@ -129,10 +123,7 @@ Content parts assembled for Gemini 3 Flash:▼Gemini 3 Flash generates a grounded answer with source citations```-<<<<<<< HEAD-=======---[Back to Top](#multimodal-rag)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/multimodal/multimodal_weather_app/README.md b/multimodal/multimodal_weather_app/README.mdindex 99f7038..ac1e239 100644--- a/multimodal/multimodal_weather_app/README.md+++ b/multimodal/multimodal_weather_app/README.md@@ -1,10 +1,6 @@# Multimodal Weather App-<<<<<<< HEAD-> Upload a map image and get live weather — Mistral Small identifies the city via vision, then fetches real-time conditions through native tool calling.-=======> Upload a map image and get live weather: Mistral Small identifies the city via vision, then fetches real-time conditions through native tool calling.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Overview@@ -16,19 +12,11 @@ This app combines two AI capabilities in a single pipeline: **vision** and **too## Features-<<<<<<< HEAD-- **Vision-powered city detection** — Mistral Small 4 reads map images and extracts the city name-- **Native tool calling** — Mistral Small 4 decides when and how to invoke the weather tool-- **Live weather data** — temperature, conditions, humidity, and wind speed fetched in real time-- **No weather API key needed** — uses `python_weather`, a free weather client-- **Simple one-click UI** — built with Gradio Blocks-=======- **Vision-powered city detection:** Mistral Small 4 reads map images and extracts the city name- **Native tool calling:** Mistral Small 4 decides when and how to invoke the weather tool- **Live weather data:** temperature, conditions, humidity, and wind speed fetched in real time- **No weather API key needed:** uses `python_weather`, a free weather client- **Simple one-click UI:** built with Gradio Blocks->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Tech Stack@@ -42,11 +30,7 @@ This app combines two AI capabilities in a single pipeline: **vision** and **too## Prerequisites- Python 3.10 or higher-<<<<<<< HEAD-- A Mistral AI API key — get one at [platform.mistral.ai](https://platform.mistral.ai)-=======- A Mistral AI API key; get one at [platform.mistral.ai](https://platform.mistral.ai)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Installation@@ -109,11 +93,7 @@ MISTRAL_API_KEY=your_mistral_api_key_here| Variable | Required | Description ||---|---|---|-<<<<<<< HEAD-| `MISTRAL_API_KEY` | Yes | Your Mistral AI API key — get one at [platform.mistral.ai](https://platform.mistral.ai) |-=======| `MISTRAL_API_KEY` | Yes | Your Mistral AI API key; get one at [platform.mistral.ai](https://platform.mistral.ai) |->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Project Structure@@ -124,10 +104,7 @@ multimodal-weather-app/├── .env.example # Environment variable template└── .env # Your local secrets (not committed)```-<<<<<<< HEAD-=======---[Back to Top](#multimodal-weather-app)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/multimodal/video_understanding_agent/README.md b/multimodal/video_understanding_agent/README.mdindex 9678c3b..afb763d 100644--- a/multimodal/video_understanding_agent/README.md+++ b/multimodal/video_understanding_agent/README.md@@ -1,12 +1,5 @@# Video Understanding Agent-<<<<<<< HEAD-> Paste a YouTube URL and get an AI-powered chapter summary, key takeaways, and action items — powered by Gemini 3 Flash.--## Overview--Video Understanding Agent lets you drop any public YouTube URL into a Streamlit interface and receive a structured breakdown of the video in seconds. Gemini 3 Flash reads the video natively through the Gemini API — no downloading, no transcription, no third-party tools.-=======> Paste a YouTube URL and get an AI-powered chapter summary, key takeaways, and action items, powered by Gemini 3 Flash.## Demo@@ -16,18 +9,12 @@ Video Understanding Agent lets you drop any public YouTube URL into a Streamlit## OverviewVideo Understanding Agent lets you drop any public YouTube URL into a Streamlit interface and receive a structured breakdown of the video in seconds. Gemini 3 Flash reads the video natively through the Gemini API. No downloading, no transcription, no third-party tools.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Features- **Chapter-by-chapter summary** with timestamps for each major segment-<<<<<<< HEAD-- **Key takeaways** — 5–8 bullet points covering the most important insights-- **Action items** — 4–6 concrete steps the viewer can act on immediately-=======- **Key takeaways**: 5–8 bullet points covering the most important insights- **Action items**: 4–6 concrete steps the viewer can act on immediately->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a- Clean, expandable sections in a Streamlit UI- Input validation rejects private, unavailable, or malformed URLs with clear error messages@@ -36,11 +23,7 @@ Video Understanding Agent lets you drop any public YouTube URL into a Streamlit| Layer | Tool ||---|---|| AI Model | Gemini 3 Flash (`gemini-3-flash-preview`) |-<<<<<<< HEAD-| AI SDK | Google Generative AI (`google-generativeai`) |-=======| AI SDK | Google Gen AI SDK (`google-genai`) |->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a| UI | Streamlit || Environment | python-dotenv |@@ -104,13 +87,8 @@ https://www.youtube.com/watch?v=dQw4w9WgXcQ**Output:**> **Chapter-by-Chapter Summary**-<<<<<<< HEAD-> - `0:00 - Introduction` — The video opens with an energetic hook establishing the central theme...-> - `1:12 - Main Segment` — The speaker dives into the core content, covering...-=======> - `0:00 - Introduction`: The video opens with an energetic hook establishing the central theme...> - `1:12 - Main Segment`: The speaker dives into the core content, covering...->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a> **Key Takeaways**> - The most important insight from the video is...@@ -130,19 +108,12 @@ https://www.youtube.com/watch?v=dQw4w9WgXcQ```textvideo-understanding-agent/-<<<<<<< HEAD-├── app.py # Streamlit app — UI, validation, Gemini API call, response parsing-=======├── app.py # Streamlit app: UI, validation, Gemini API call, response parsing->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a├── requirements.txt # Python dependencies├── .env.example # Template for environment variables└── .env # Your local secrets (not committed)```-<<<<<<< HEAD-=======---[Back to top](#video-understanding-agent)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/rag_apps/clinical_rag_with_ade/README.md b/rag_apps/clinical_rag_with_ade/README.mdindex ca4920a..dc92881 100644--- a/rag_apps/clinical_rag_with_ade/README.md+++ b/rag_apps/clinical_rag_with_ade/README.md@@ -1,10 +1,7 @@# 🏥 Clinical RAG with ADE-<<<<<<< HEAD-=======> Query dense clinical PDFs and get answers grounded in the document's exact visual layout.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Overviewdiff --git a/rag_apps/graphrag_knowledge_system/README.md b/rag_apps/graphrag_knowledge_system/README.mdindex bb4167b..5c1f24f 100644--- a/rag_apps/graphrag_knowledge_system/README.md+++ b/rag_apps/graphrag_knowledge_system/README.md@@ -4,11 +4,7 @@## Overview-<<<<<<< HEAD-GraphRAG Knowledge System implements Microsoft's GraphRAG methodology as a fully local Streamlit application. Documents are chunked and processed through an entity-extraction pipeline powered by Mistral Small 4. Extracted entities and relationships are stored in a NetworkX graph persisted to disk, while text embeddings are stored in ChromaDB using Ollama's `nomic-embed-text` model. At query time the app supports two retrieval modes — **Local Search** for pinpointing specific entities and **Global Search** for synthesising broad themes across the entire graph — before generating a grounded answer with supporting knowledge graph context.-=======GraphRAG Knowledge System implements Microsoft's GraphRAG methodology as a fully local Streamlit application. Documents are chunked and processed through an entity-extraction pipeline powered by Mistral Small 4. Extracted entities and relationships are stored in a NetworkX graph persisted to disk, while text embeddings are stored in ChromaDB using Ollama's `nomic-embed-text` model. At query time the app supports two retrieval modes: **Local Search** for pinpointing specific entities and **Global Search** for synthesising broad themes across the entire graph, before generating a grounded answer with supporting knowledge graph context.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Demo@@ -16,16 +12,6 @@ GraphRAG Knowledge System implements Microsoft's GraphRAG methodology as a fully## Features-<<<<<<< HEAD-- **Document ingestion** — upload PDF or TXT files; documents are chunked, entity-extracted, and indexed automatically-- **GraphRAG entity extraction** — extracts typed entities (Person, Organization, Location, Technology, Concept, Event) and weighted relationships from every chunk using Mistral-- **Local Knowledge Graph** — NetworkX `DiGraph` persisted as JSON; no external database required-- **Local embeddings** — `nomic-embed-text` via Ollama runs entirely on your machine; no embedding API key needed-- **Local vector store** — ChromaDB stores chunk embeddings with persistent local storage-- **Dual search modes** — Local Search for entity-centric retrieval, Global Search for community-level thematic synthesis-- **Document caching** — SHA-256 file hashing prevents re-indexing the same file on every run-- **Community detection** — automatic Louvain community detection groups related entities and generates community summaries for Global Search-=======- **Document ingestion**: upload PDF or TXT files; documents are chunked, entity-extracted, and indexed automatically- **GraphRAG entity extraction**: extracts typed entities (Person, Organization, Location, Technology, Concept, Event) and weighted relationships from every chunk using Mistral- **Local Knowledge Graph**: NetworkX `DiGraph` persisted as JSON; no external database required@@ -34,7 +20,6 @@ GraphRAG Knowledge System implements Microsoft's GraphRAG methodology as a fully- **Dual search modes**: Local Search for entity-centric retrieval, Global Search for community-level thematic synthesis- **Document caching**: SHA-256 file hashing prevents re-indexing the same file on every run- **Community detection**: automatic Louvain community detection groups related entities and generates community summaries for Global Search->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Tech Stack@@ -44,11 +29,7 @@ GraphRAG Knowledge System implements Microsoft's GraphRAG methodology as a fully| Document Ingestion | LangChain || LLM | Mistral Small 4 (`mistral-small-latest`) via Mistral AI API || Embeddings | `nomic-embed-text` via Ollama (local) |-<<<<<<< HEAD-| Graph Store | NetworkX DiGraph — persisted to `graph_store.json` |-=======| Graph Store | NetworkX DiGraph, persisted to `graph_store.json` |->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a| Vector Database | ChromaDB (local persistent storage in `chroma_db/`) || UI | Streamlit |@@ -120,19 +101,11 @@ Open [http://localhost:8501](http://localhost:8501) in your browser.**Workflow**1. Upload one or more PDF or TXT files using the sidebar file uploader-<<<<<<< HEAD-2. Click **⚙️ Process Documents** — the app chunks each file, extracts entities and relationships, builds the knowledge graph, and indexes embeddings-3. Type a question in the main panel and choose a search mode:- - **🔍 Local Search** — best for specific questions about named entities, events, or facts- - **🌐 Global Search** — best for broad thematic questions that span the whole document set-4. Click **🚀 Ask** — the answer appears as a paragraph with supporting entities and relationships listed below-=======2. Click **⚙️ Process Documents**: the app chunks each file, extracts entities and relationships, builds the knowledge graph, and indexes embeddings3. Type a question in the main panel and choose a search mode:- **🔍 Local Search**: best for specific questions about named entities, events, or facts- **🌐 Global Search**: best for broad thematic questions that span the whole document set4. Click **🚀 Ask**: the answer appears as a paragraph with supporting entities and relationships listed below->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a**Example**@@ -166,11 +139,7 @@ Copy `.env.example` to `.env` and fill in the value below.| Variable | Required | Description ||---|---|---|-<<<<<<< HEAD-| `MISTRAL_API_KEY` | Yes | Your Mistral AI API key — get one at [platform.mistral.ai](https://platform.mistral.ai) |-=======| `MISTRAL_API_KEY` | Yes | Your Mistral AI API key, get one at [platform.mistral.ai](https://platform.mistral.ai) |->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```envMISTRAL_API_KEY=your_mistral_api_key_here@@ -181,11 +150,7 @@ MISTRAL_API_KEY=your_mistral_api_key_here## Project Structure```text-<<<<<<< HEAD-graphrag-knowledge-system/-=======graphrag_knowledge_system/->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a├── app.py # Streamlit UI, ingestion pipeline, community detection├── src/│ ├── cache_manager.py # SHA-256 file-hash cache (cache.json)@@ -195,21 +160,12 @@ graphrag_knowledge_system/│ ├── llm_client.py # Mistral AI chat client with retry logic│ ├── search_engine.py # Local search and Global search implementations│ └── vector_store.py # ChromaDB collection with Ollama embedding function-<<<<<<< HEAD-├── chroma_db/ # Auto-created — ChromaDB persistent storage-├── graph_store.json # Auto-created — serialised NetworkX graph-├── cache.json # Auto-created — processed file hashes-=======├── chroma_db/ # Auto-created, ChromaDB persistent storage├── graph_store.json # Auto-created, serialised NetworkX graph├── cache.json # Auto-created, processed file hashes->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a├── requirements.txt├── .env.example└── README.md```-<<<<<<< HEAD-=======[Back to top](#graphrag-knowledge-system)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/rag_apps/hybrid_rag_system/README.md b/rag_apps/hybrid_rag_system/README.mdindex 14274fa..549d157 100644--- a/rag_apps/hybrid_rag_system/README.md+++ b/rag_apps/hybrid_rag_system/README.md@@ -12,16 +12,6 @@ Hybrid RAG System dual-indexes every uploaded document: a knowledge graph captur## Features-<<<<<<< HEAD-- **Dual indexing** — every document is indexed into both a knowledge graph and a vector store in a single ingestion pass-- **Parallel retrieval** — graph and vector queries run concurrently via `ThreadPoolExecutor`, minimising latency-- **Context fusion** — graph entities/relationships and ranked vector chunks are merged into one unified prompt-- **Adjustable retrieval** — sliders to tune top-K vector chunks (1–20) and max graph entities (5–50) at query time-- **Document cache** — SHA-256 hash check skips re-indexing files that are already processed-- **Progress tracking** — two-phase progress bar shows entity extraction and embedding status during ingestion-- **Source transparency** — answer panel shows graph sources and vector sources in separate labelled sections with similarity scores-- **Performance metrics** — per-query timing for graph retrieval, vector retrieval, and generation-=======- **Dual indexing**: every document is indexed into both a knowledge graph and a vector store in a single ingestion pass- **Parallel retrieval**: graph and vector queries run concurrently via `ThreadPoolExecutor`, minimising latency- **Context fusion**: graph entities/relationships and ranked vector chunks are merged into one unified prompt@@ -30,7 +20,6 @@ Hybrid RAG System dual-indexes every uploaded document: a knowledge graph captur- **Progress tracking**: two-phase progress bar shows entity extraction and embedding status during ingestion- **Source transparency**: answer panel shows graph sources and vector sources in separate labelled sections with similarity scores- **Performance metrics**: per-query timing for graph retrieval, vector retrieval, and generation->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Tech Stack@@ -40,13 +29,8 @@ Hybrid RAG System dual-indexes every uploaded document: a knowledge graph captur| Vector retrieval | LangChain + ChromaDB || LLM | Mistral Small 4 (`mistral-small-latest`) via Mistral AI API || Embeddings | `nomic-embed-text` via Ollama (local, no API key needed) |-<<<<<<< HEAD-| Graph store | NetworkX — persisted as JSON |-| Vector database | ChromaDB — local persistent storage |-=======| Graph store | NetworkX, persisted as JSON || Vector database | ChromaDB, local persistent storage |->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a| UI | Streamlit || Configuration | python-dotenv |@@ -110,11 +94,7 @@ streamlit run app.pyThe app opens at `http://localhost:8501`.1. Upload a PDF or TXT file using the sidebar uploader-<<<<<<< HEAD-2. Click **Process Document** — the progress bar tracks entity extraction (Phase 1) then chunk embedding (Phase 2)-=======2. Click **Process Document**. The progress bar tracks entity extraction (Phase 1) then chunk embedding (Phase 2)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a3. Type a question in the main panel and click **Ask**4. Review the answer and expand **Graph Sources** and **Vector Sources** to inspect the retrieved evidence@@ -136,11 +116,7 @@ Ollama runs locally and requires no API key.```texthybrid-rag-system/-<<<<<<< HEAD-├── app.py # Streamlit application — UI, session state, parallel retrieval-=======├── app.py # Streamlit application: UI, session state, parallel retrieval->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a├── config.py # Constants and automatic data-directory creation├── src/│ ├── document_processor.py # PDF/TXT loading, text chunking, hash-based document cache@@ -160,10 +136,7 @@ hybrid-rag-system/├── .env.example # Environment variable template└── requirements.txt # Python dependencies```-<<<<<<< HEAD-=======---[Back to top](#hybrid-rag-system)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/rag_apps/hyde_rag/README.md b/rag_apps/hyde_rag/README.mdindex 2c44872..efda45f 100644--- a/rag_apps/hyde_rag/README.md+++ b/rag_apps/hyde_rag/README.md@@ -7,11 +7,7 @@Standard RAG embeds the user's raw query and uses it to search the vector store. The problem: a short question and a long detailed answer live in very different regions of the embedding space, so the nearest-neighbour search often misses the most relevant chunks.-<<<<<<< HEAD-HyDE solves this by flipping the retrieval signal. Instead of embedding the query, the system prompts an LLM to generate N hypothetical answers — documents that *would* contain the answer. Each is embedded, the resulting vectors are averaged into a single HyDE embedding, and that richer signal is used to retrieve from the vector store. Hypothetical answers sit much closer to real answers in embedding space than the original query does.-=======HyDE solves this by flipping the retrieval signal. Instead of embedding the query, the system prompts an LLM to generate N hypothetical answers, documents that *would* contain the answer. Each is embedded, the resulting vectors are averaged into a single HyDE embedding, and that richer signal is used to retrieve from the vector store. Hypothetical answers sit much closer to real answers in embedding space than the original query does.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Demo@@ -19,15 +15,9 @@ HyDE solves this by flipping the retrieval signal. Instead of embedding the quer## Features-<<<<<<< HEAD-- **Hypothetical Document Generation:** MiniMax M2.5 generates N configurable hypothetical answer documents per query-- **HyDE Averaging:** Gemini Embedding 2 embeds each hypothetical doc; vectors are averaged with NumPy into a single retrieval signal-- **ChromaDB Vector Store:** Lightweight, in-process vector store — no external service required-=======- **Hypothetical Document Generation:** Gemini 3 Flash generates N configurable hypothetical answer documents per query- **HyDE Averaging:** Gemini Embedding 2 embeds each hypothetical doc; vectors are averaged with NumPy into a single retrieval signal- **ChromaDB Vector Store:** Lightweight, in-process vector store that requires no external service->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a- **Transparent Intermediate Steps:** The UI surfaces the hypothetical documents and retrieved chunks so you can see exactly how retrieval worked- **Configurable Retrieval:** Sliders for chunk size, chunk overlap, number of hypothetical docs, and number of retrieved chunks- **PDF and TXT support:** LangChain document loaders handle both formats@@ -46,11 +36,7 @@ HyDE solves this by flipping the retrieval signal. Instead of embedding the quer## Prerequisites- Python 3.11 or later-<<<<<<< HEAD-- A Google API key — get one free at [aistudio.google.com](https://aistudio.google.com)-=======- A Google API key, get one free at [aistudio.google.com](https://aistudio.google.com)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Installation@@ -78,11 +64,7 @@ python -m venv .venv**Install dependencies**```bash-<<<<<<< HEAD-pip install -r pyproject.toml-=======pip install .->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```Or with `uv`:@@ -127,11 +109,7 @@ Open `http://127.0.0.1:7860` in your browser.User question│▼-<<<<<<< HEAD-MiniMax M2.5 generates N hypothetical answer documents-=======Gemini 3 Flash generates N hypothetical answer documents->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a│▼Gemini Embedding 2 embeds each hypothetical document@@ -146,11 +124,7 @@ ChromaDB similarity search with HyDE embeddingTop-K chunks retrieved│▼-<<<<<<< HEAD-MiniMax M2.5 synthesises final answer from retrieved context-=======Gemini 3 Flash synthesises final answer from retrieved context->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a```## Project Structure@@ -158,23 +132,13 @@ Gemini 3 Flash synthesises final answer from retrieved context```texthyde_rag/├── app.py # Gradio UI-<<<<<<< HEAD-├── rag.py # HyDERAG class — ingest and query pipeline-├── embedder.py # GeminiEmbedder — embedding + HyDE vector averaging-=======├── rag.py # HyDERAG class, ingest and query pipeline├── embedder.py # GeminiEmbedder, embedding + HyDE vector averaging->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a├── pyproject.toml # Project dependencies├── .env # Your API keys (git-ignored)├── .env.example # Template for .env└── assets/-<<<<<<< HEAD- └── demo.png-```-=======└── demo.gif```[Back to top](#hyde-rag)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/rag_apps/rag_agent_with_database_routing/README.md b/rag_apps/rag_agent_with_database_routing/README.mdindex d8fc614..b55dc93 100644--- a/rag_apps/rag_agent_with_database_routing/README.md+++ b/rag_apps/rag_agent_with_database_routing/README.md@@ -1,7 +1,4 @@-<<<<<<< HEAD-=======<a id="top"></a>->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a# RAG Agent with Database Routing> A RAG system that intelligently routes queries across three specialized databases covering product information, customer support, and financial data. When no relevant documents are found, a fallback agent performs live web research to still return a useful answer.@@ -47,11 +44,7 @@ cd Hands-On-AI-Engineering/rag_apps/rag_agent_with_database_routingcp .env.example .env```-<<<<<<< HEAD-Add your Google API key to `.env`.-=======Add your ORQ_API_KEY to `.env`.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a## Usage@@ -112,8 +105,5 @@ Qdrant retrieves top-k documents from the selected collection▼Streamlit displays the answer with routing badge, source docs, and reasoning```-<<<<<<< HEAD-=======[Back to top](#top)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4adiff --git a/rag_apps/vision_rag/README.md b/rag_apps/vision_rag/README.mdindex 28771eb..e330e79 100644--- a/rag_apps/vision_rag/README.md+++ b/rag_apps/vision_rag/README.md@@ -3,35 +3,12 @@A visual-first search engine that allows you to "talk" to your images and PDF documents. It combines visual similarity search with advanced Visual Question Answering (VQA).## Principal Functionalities-<<<<<<< HEAD-- **Visual Retrieval Augmented Generation (VisionRAG)**: Unlike text-only RAG, this system breaks down PDFs and images into visual segments and uses **Cohere Embed-v3** to find the most relevant visual context for your question.-- **Multimodal Question Answering**: Powered by **OpenAI Vision**, the system "looks" at the retrieved image or PDF page to answer specific questions about charts, diagrams, or photos.-=======- **Visual Retrieval Augmented Generation (VisionRAG)**: Unlike text-only RAG, this system breaks down PDFs and images into visual segments and uses **Cohere Embed-v4** to find the most relevant visual context for your question.- **Multimodal Question Answering**: Powered by **Mistral Small (Vision)**, the system "looks" at the retrieved image or PDF page to answer specific questions about charts, diagrams, or photos.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a- **PDF-to-Visual Indexing**: High-fidelity conversion of PDF pages into searchable visual chunks using **PyMuPDF**.- **Interactive Visual Chat**: A dashboard that shows you exactly which part of the document the AI is looking at when it gives its answer.## Technical Context-<<<<<<< HEAD-- **Intelligence**: OpenAI `gpt-4o-mini` (Vision-enabled) for multimodal understanding.-- **Embeddings**: Cohere `embed-english-v3.0` for high-accuracy visual search.-- **Processing**: PyMuPDF and Pillow for document-to-image pipeline.--## Setup & Execution--### 1. Requirements-This project runs within the shared repository environment. Ensure dependencies are installed:--This project runs within the shared repository environment. Ensure dependencies are installed:-From the `vision_rag` directory, install dependencies:- ```bash-cd vision_rag- pip install -r requirements.txt-```-### 2. Environment-The application pulls your `OPENAI_API_KEY` and `COHERE_API_KEY` from the root `.env` file.-=======- **Intelligence**: Mistral `mistral-small-latest` (Vision-enabled) for multimodal understanding.- **Embeddings**: Cohere `embed-v4.0` for high-accuracy visual search.- **Processing**: PyMuPDF and Pillow for document-to-image pipeline.@@ -56,7 +33,6 @@ pip install -r requirements.txt```### 2. EnvironmentThe application pulls your `MISTRAL_API_KEY` and `COHERE_API_KEY` from the root `.env` file.->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a### 3. Launch```bash@@ -67,8 +43,5 @@ streamlit run app.py1. **Upload**: Load any image (PNG/JPG) or a multi-page PDF document.2. **Interact**: Ask a question like "What does the growth chart on page 3 indicate?" or "Describe the logo in this image."3. **Verify**: The system will display the most relevant visual segment side-by-side with its AI-generated answer.-<<<<<<< HEAD-=======[Back to top](#visionrag-multimodal-search--vqa)->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a