Author: Rishabh Srivastava
This repository contains the code for an interactive ReAct Agent that integrates search, comparison, and analysis tools using LangChain, SerpAPI, and Google Vertex AI's Gemini model. The project includes a Gradio-based UI for processing queries and displaying results, with robust error handling and seamless tool transitions.
- Search Tool: Fetches information from the web using SerpAPI.
- Comparison Tool: Compares multiple items based on a specified category using LangChain.
- Analysis Tool: Summarizes and extracts key insights from search and comparison results using Gemini model.
To run this project, ensure the following Python libraries are installed:
gradiolangchainlangchain_communitylangchain_google_vertexaigoogle-cloud-aiplatform
Install the required dependencies using pip:
pip install gradio langchain langchain_community langchain_google_vertexai google-cloud-aiplatformRun the application by using the command:
python app.pyYou can access the Gradio interface via the link provided on your terminal.
The user interface generated by Gradio is shown below:
UI for ReAct AgentThe Jupyter Notebook ReAct_Agent.ipynb has also been added for convenience in running the code and ease of experimentation.
