Agentic AI · Web research
Search AI Agent
A ReAct agent that decides when to search the web with Tavily, reads the results and answers in a Streamlit chat.
- Status
- Completed
- Role
- Personal project
- Year
- 2026
Overview
A small, complete agent: a language model that reasons step by step, decides when it needs the web, calls a search tool, reads what comes back and answers. It runs as a Streamlit chat, with a notebook that builds it piece by piece.
Problem
A language model on its own answers from what it saw in training. For current questions it has to search, read and then answer, and decide for itself when a search is worth it.
Objectives
- Implement the ReAct loop: thought, tool call, observation, answer.
- Give the agent one reliable web search tool.
- Wrap it in a chat that keeps history.
My role and contributions
Personal project
- Built the agent, the chat app and the notebook.
Technical architecture
Drawn from the project's real components, in the order data moves through them.
Question
Streamlit chat
ReAct agent
create_react_agent + AgentExecutor
Tavily search
top 3 results
ChatGroq
temperature 0
Answer
history in session state
Technology stack
Implementation details
- ReAct loop
- LangChain create_react_agent and AgentExecutor with the hwchase17/react prompt.
- Search tool
- TavilySearchResults returning the top three results.
- Model
- A Groq-hosted model through ChatGroq at temperature 0.
- Chat
- Streamlit chat with history in session state; the agent is built once with st.cache_resource.
- Notebook
- research/agent_demo.ipynb builds the tool, the model and then the loop.
Screenshots and demonstrations
Screenshots for this project are being prepared.
Results and evaluation
- Working chat agent; no formal evaluation published.
Limitations
- No README instructions, tests or .env example in the repository yet.
- One tool only.
Future improvements
- Add setup docs and an .env example.
- Add more tools and a trace view in the chat.
Repository and links
Next project
AI Code Reviewer