Skip to content
Tejas P Mehta
  • Home
  • About
  • Claude Workflow
  • Build a RAG
  • Build AI Agent in PHP
  • Home
  • About
  • Claude Workflow
  • Build a RAG
  • Build AI Agent in PHP

Posts by Tejas P Mehta

  • Home
  • Tejas P Mehta
About Tejas P Mehta
Founder & CTO of Mavin Agency, a 25+ person software firm serving 100+ clients since 2016. Writing PHP since 2005. I write practical, step-by-step AI tutorials for developers, PMs and founders: Claude across the dev workflow, RAG and AI agents in plain PHP and MySQL.
Evaluating an AI agent, tracking cost and shipping it
Posted inAI & LLMs AI Agents in PHP Series MySQL & Databases PHP Tutorials

Evaluate, Control Cost, and Ship

Posted by By Tejas P Mehta October 21, 2026
Over seven parts, Nimbus has gone from a chatbot that could only talk to an…
Read More
A human approving or denying an action proposed by an AI agent
Posted inAI & LLMs AI Agents in PHP Series MySQL & Databases PHP Tutorials

Guardrails and Human Approval

Posted by By Tejas P Mehta October 21, 2026
Nimbus can now read orders, check policies, search documents, open tickets and remember conversations. It's…
Read More
An agent storing past conversation turns in memory
Posted inAI & LLMs AI Agents in PHP Series MySQL & Databases PHP Tutorials

Memory: Conversations That Remember

Posted by By Tejas P Mehta October 21, 2026
Here's a perfectly normal support conversation: Customer: Can I get a refund for order #1043?…
Read More
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
A chatbot that only talks becoming an agent that takes action
Posted inAI & LLMs AI Agents in PHP Series MySQL & Databases PHP Tutorials

From Answering to Acting: What Makes an AI Agent

Posted by By Tejas P Mehta October 21, 2026
A customer opens the Nimbus chat window and types: "Hi, I bought the Pro annual…
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

Posts pagination

1 2 3 … 5 Next page
Scroll to Top