๐ช๐ต๐ฎ๐ ๐ ๐๐ฒ๐ฎ๐ฟ๐ป๐ฒ๐ฑ ๐๐๐ถ๐น๐ฑ๐ถ๐ป๐ด ๐ฎ๐ป ๐๐๐๐ผ๐ป๐ผ๐บ๐ผ๐๐ ๐๐ฒ๐ฎ๐น-๐๐๐ป๐๐ถ๐ป๐ด ๐๐ด๐ฒ๐ป๐ ๐ฆ๐๐๐๐ฒ๐บ
I built a multi-agent AI system to find product deals.
It scans the internet for bargains. It estimates the true value of products using three different methods. It sends a notification to my phone when it finds a deal worth buying.
Here is what I learned about building agentic systems.
๐ญ. ๐ฆ๐ฝ๐ฒ๐ฐ๐ถ๐ฎ๐น๐ถ๐๐ฒ ๐ฎ๐ป๐ฑ ๐ข๐ฟ๐ฐ๐ต๐ฒ๐๐๐ฟ๐ฎ๐๐ฒ No single model is good at everything. I split the work into small, focused agents:
- Scanner Agent: Finds deals from RSS feeds.
- Specialist Agent: A fine-tuned Llama 3.2 model for price estimation.
- Frontier Agent: A GPT model using RAG for context.
- Ensemble Agent: Blends different estimates into one final number.
- Planning Agent: The brain that decides which tool to use and when.
The intelligence comes from how they work together, not from one giant prompt.
๐ฎ. ๐ฅ๐๐ ๐ถ๐ ๐๐ต๐ฒ๐ฎ๐ฝ ๐๐ฒ๐๐ฒ๐ฟ๐ฎ๐ด๐ฒ Adding a few similar products and their prices to a prompt improved accuracy. I used a Chroma vector database to find these products. Seeing product categories cluster in a 3D map proved that embeddings work.
๐ฏ. ๐๐ป๐๐ฒ๐บ๐ฏ๐น๐ถ๐ป๐ด ๐ช๐ผ๐ฟ๐ธ๐ ๐๐ฒ๐๐๐ฒ๐ฟ I did not pick one favorite pricing method. I used a weighted blend:
- 80% weight to the RAG model.
- 10% weight to the fine-tuned model.
- 10% weight to a neural network. This blend outperformed any single model.
๐ฐ. ๐๐ฒ๐ณ๐ฒ๐ป๐๐ถ๐๐ฒ ๐ง๐ผ๐ผ๐น ๐๐ฎ๐น๐น๐ถ๐ป๐ด LLMs often send malformed data when calling functions. Smaller models might add extra arguments that do not exist. You must write code that filters these arguments against your actual function signature. This prevents your system from crashing at night.
๐ฑ. ๐ ๐ฎ๐ป๐ฎ๐ด๐ฒ ๐๐ป๐ณ๐ฟ๐ฎ๐๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ ๐ฆ๐ฒ๐ฟ๐๐ฒ๐ฟ๐น๐ฒ๐๐๐น๐ I used Modal to run my fine-tuned models. You can request a GPU with one line of code. This removes the need to manage your own servers. You can also deploy a model as a remote service that you call like a normal Python object.
๐ฒ. ๐ ๐ฎ๐ธ๐ฒ ๐๐ต๐ฒ ๐จ๐ ๐๐ฒ๐ฒ๐น ๐๐น๐ถ๐๐ฒ An agent can feel like a black box. I used Gradio with background threads and generators. This allows the UI to show live logs while the agent works. When you see the agent thinking in real time, you trust it more.
Building this taught me that agentic magic is mostly just good plumbing. Get your data flow right, use structured outputs, and keep your agents focused.
Source: https://dev.to/m_toqeer/what-i-learned-building-an-autonomous-deal-hunting-agent-system-3n6b
Optional learning community: https://t.me/GyaanSetuAi