Skip to content
Tejas P Mehta

Practical AI for Developers, PMs & Founders

  • Home
  • About
  • Claude Workflow
  • Build a RAG
  • Build AI Agent in PHP
  • Home
  • About
  • Claude Workflow
  • Build a RAG
  • Build AI Agent in PHP

Gemini API

  • Home
  • Gemini API
An agent combining knowledge-base search with tools
Posted inAI & LLMs AI Agents in PHP Series MySQL & Databases PHP Tutorials RAG Tutorial Series

RAG + Tools Together

Posted by By Tejas P Mehta October 21, 2026
Ask the Part 4 version of Nimbus this: "I was charged twice for order #1043.…
Read More
The agent loop: decide, act, observe, answer
Posted inAI & LLMs AI Agents in PHP Series MySQL & Databases PHP Tutorials

The Agent Loop: Thinking in Steps

Posted by By Tejas P Mehta October 21, 2026
At the end of Part 3, Nimbus got close. A customer asked for a refund…
Read More
A support agent toolbox with a refund check and a ticket writer
Posted inAI & LLMs AI Agents in PHP Series MySQL & Databases PHP Tutorials

Giving Nimbus Its First Real Tools

Posted by By Tejas P Mehta October 21, 2026
After Part 2, Nimbus can look up an order through real tool calling. That's useful,…
Read More
An AI model requesting a tool call and receiving the result from code
Posted inAI & LLMs AI Agents in PHP Series MySQL & Databases PHP Tutorials

Tool Calling in Plain PHP

Posted by By Tejas P Mehta October 21, 2026
In Part 1, our mini agent worked because we asked nicely: "Reply with JSON only,…
Read More
News answers ranked by freshness with multi-source citations
Posted inAI & LLMs PHP Tutorials RAG Tutorial Series

Bonus 2 — Local News RAG: Recency-Aware Answers & Multi-Source Citations

Posted by By Tejas P Mehta July 25, 2026
The last piece Bonus 1 left us able to fetch, dedup, and retrieve today's news.…
Read More
A live news feed flowing into a RAG pipeline with duplicates removed
Posted inAI & LLMs MySQL & Databases PHP Tutorials RAG Tutorial Series

Bonus 1 — Local News RAG: Pointing the Pattern at Live Data

Posted by By Tejas P Mehta July 25, 2026
Same skeleton, live target You just built a support bot over static documents. This bonus…
Read More
Evaluating a RAG bot and shipping it as a web chat
Posted inAI & LLMs PHP Tutorials RAG Tutorial Series

Episode 8 — Evaluating & Shipping

Posted by By Tejas P Mehta July 23, 2026
From "seems good" to "measurably good" to "live" For two episodes I've been repeating the…
Read More
Keyword and vector search combined, with a shield blocking a malicious note
Posted inAI & LLMs MySQL & Databases PHP Tutorials RAG Tutorial Series

Episode 7 — Improving Quality: Hybrid Search, Reranking & Guardrails

Posted by By Tejas P Mehta July 23, 2026
"Works on my questions" isn't "works" Episode 6 gave us a real, grounded, cited bot.…
Read More
An AI answer with numbered citations linked to source documents
Posted inAI & LLMs PHP Tutorials RAG Tutorial Series

Episode 6 — Generation: Grounded Answers with Citations

Posted by By Tejas P Mehta July 23, 2026
The last mile Five episodes of groundwork come together here. We can load documents, chunk…
Read More
Filtering search results with top-K and a similarity threshold
Posted inAI & LLMs PHP Tutorials RAG Tutorial Series

Episode 5 — Retrieval: Top-K, Thresholds & Filtering

Posted by By Tejas P Mehta July 23, 2026
Our search is fast, but it isn't smart After Episode 4, MySQL ranks our chunks…
Read More

Posts pagination

1 2 Next page
Scroll to Top