Skip to content

A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.

audit: fix agentic_sql_search - add env comment, README tagline, rewrite em dashes

Tiioluwani54b816bf3ebd
diff --git a/ai_agents/agentic_sql_search/.env.example b/ai_agents/agentic_sql_search/.env.example
index 1885955..7e90e61 100644
--- a/ai_agents/agentic_sql_search/.env.example
+++ b/ai_agents/agentic_sql_search/.env.example
@@ -1 +1,2 @@
+# Google Gemini API key used to authenticate requests to Gemma 4. Get yours free at https://aistudio.google.com
GEMINI_API_KEY=your_google_ai_studio_key_here
diff --git a/ai_agents/agentic_sql_search/README.md b/ai_agents/agentic_sql_search/README.md
index fbe6d11..9d3c8ce 100644
--- a/ai_agents/agentic_sql_search/README.md
+++ b/ai_agents/agentic_sql_search/README.md
@@ -1,5 +1,7 @@
# πŸ” Agentic SQL Search
+> Ask a question in plain English and this agent inspects the schema, writes the SQL, runs it, and returns a clear answer.
+
![Agentic SQL Search Demo](assets/demo.png)
## Overview
@@ -63,9 +65,9 @@ User Question
```
**Tools:**
-- **`load_skill`** β€” reads `skills/sql.md`, which contains SQLite syntax rules, common query patterns, and schema reference
-- **`get_schema`** β€” queries `sqlite_master` and `PRAGMA table_info` to return the live database structure
-- **`execute_sql`** β€” runs any SELECT query and returns a formatted table (SELECT-only for safety)
+- **`load_skill`**: reads `skills/sql.md`, which contains SQLite syntax rules, common query patterns, and schema reference
+- **`get_schema`**: queries `sqlite_master` and `PRAGMA table_info` to return the live database structure
+- **`execute_sql`**: runs any SELECT query and returns a formatted table (SELECT-only for safety)
## Prerequisites
diff --git a/ai_agents/agentic_sql_search/agent.py b/ai_agents/agentic_sql_search/agent.py
index 3431f79..1a55a43 100644
--- a/ai_agents/agentic_sql_search/agent.py
+++ b/ai_agents/agentic_sql_search/agent.py
@@ -1,8 +1,8 @@
"""
-Agentic SQL Search β€” LangGraph ReAct agent with three tools:
- β€’ load_skill β€” loads SQL syntax rules and schema reference
- β€’ get_schema β€” inspects the live database schema
- β€’ execute_sql β€” runs a SELECT query and returns results
+LangGraph ReAct agent for Agentic SQL Search, with three tools:
+ β€’ load_skill: loads SQL syntax rules and schema reference
+ β€’ get_schema: inspects the live database schema
+ β€’ execute_sql: runs a SELECT query and returns results
"""
import os
diff --git a/ai_agents/agentic_sql_search/app.py b/ai_agents/agentic_sql_search/app.py
index e3e3860..86b7707 100644
--- a/ai_agents/agentic_sql_search/app.py
+++ b/ai_agents/agentic_sql_search/app.py
@@ -1,5 +1,5 @@
"""
-Agentic SQL Search β€” Streamlit UI
+Streamlit UI for the Agentic SQL Search app.
Run: streamlit run app.py
"""
diff --git a/ai_agents/agentic_sql_search/database.py b/ai_agents/agentic_sql_search/database.py
index 681ba36..3d81eac 100644
--- a/ai_agents/agentic_sql_search/database.py
+++ b/ai_agents/agentic_sql_search/database.py
@@ -1,5 +1,5 @@
"""
-SQLite e-commerce database β€” schema definition and sample data seeding.
+SQLite e-commerce database schema definition and sample data seeder.
Run this file directly to (re)create the database: python database.py
"""