agent.py retriever.py tests/test_agent.py
agentic platform User FastAPI Orchestrator plan → act → observe Tools Claude Vector DB
12345 678910 1112131415 1617181920
from anthropic import AsyncAnthropicfrom treehouse.rag import Reranker, Retriever  class ResearchAgent:    """Answers questions over a private corpus."""     def __init__(self, model="claude-opus-5"):        self.client = AsyncAnthropic()        self.retriever = Retriever(top_k=12)        self.model = model     async def answer(self, question: str) -> str:        docs = await self.retriever.search(question)        ranked = Reranker().sort(docs, question)        reply = await self.client.messages.create(            model=self.model,            messages=[prompt(question, ranked[:4])],        )        return reply.content[0].text
main Python 3.12 UTF-8 Ln 20, Col 36

Hey! I'm Sk. Farhad Uddin Ahmed Lead AI Engineer, Backend Expert, Researcher and a Father!

  • Home
  • Experience
  • Education
  • Skills
  • Projects
  • Services

Projects

MarketWiki BD

MarketWiki BD

Retail investors in Bangladesh's DSE/CSE market have no easy way to spot pump-and-dump schemes or gauge how trustworthy an issuer is before investing. MarketWiki BD is a market-intelligence platform I'm building to score issuer credibility and flag manipulation patterns automatically.

See details →

ChatExpense

ChatExpense

ChatExpense is my latest brain-child, an AI-powered personal finance assistant that helps users effortlessly track and manage their spending. Users can log expenses through voice, text, or photos of receipts, and our AI automatically categorizes transactions, identifies spending patterns, and generates personalized insights.

See details →

Dingi Map APIs

Dingi Map APIs

Dingi Map API is a platform that helps web service providers to focus on their location based solutions easily with a very reasonable price including tailored custom tailored Map APIs/SDKs. The solution includes a JavaScript Map API and SDK and corresponding Android SDK.

See details →

Hazard Reporting System

Hazard Reporting System

SMS Based Hazard Reporting System for Flood Affected people of Bangladesh. Distressed individuals with only a basic mobile phone can report an emergency over SMS, which is geo-tracked and automatically matched with the nearest available volunteer for a coordinated rescue, with every report visible on a live GIS dashboard.

See details →

stocksurferbd

stocksurferbd

This is a Python library based on beautifulsoup4, pandas & mplfinance. You may use it to download price history and fundamental information of companies from Dhaka Stock Exchange and Chittagong Stock Exchange.

See details →

Wapptel

Wapptel

Small and medium businesses want to run WhatsApp marketing campaigns without paying for the official WhatsApp Business API. Wapptel gives them bulk messaging, contact management and campaign tracking on top of WhatsApp Web, with the safety rails (rate limiting, phone validation) to avoid getting numbers banned.

See details →

High Command

High Command

Turn-based strategy games running game logic separately on the server and in the browser risk the two falling out of sync, letting a client desync into an unfair or exploitable state. High Command is a deterministic, real-time strategic wargame where the same core rules engine runs, verifiably identically, on both sides.

See details →

Follow me

Contact

farhad@techjays.com (Work)
sk.farhad.eee@gmail.com (Personal)

Design Template Courtesy: Initio by GetTemplate