This project is an intelligent assistant built using Streamlit and the Groq language model, which performs Google searches and summarizes the content of the top results. The application leverages the langchain-groq
, googlesearch-python
, beautifulsoup4
, requests
, and python-dotenv
libraries to provide accurate and concise answers to user queries.
- Perform Google searches based on user queries.
- Summarize the content of the top search results.
- Display the summarized information in a user-friendly Streamlit app.
- Python 3.7 or higher
-
Clone the repository:
git clone https://github.com/yourusername/Google_Search_Agent.git cd Google_Search_Agent
-
Create and activate a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up the environment variables:
Create a file named
.env
in the root directory of the project and add your Groq API key:GROQ_API_KEY=your_api_key_here
-
Run the Streamlit app:
streamlit run app.py
-
Interact with the app:
- Open your web browser and go to
http://localhost:8501
. - Enter your query in the text input field.
- Click the "Get Answer" button to receive a summarized answer.
- Open your web browser and go to
Google_Search_Agent/ β βββ .env βββ app.py βββ requirements.txt βββ README.md
.env
: Contains environment variables, including the Groq API key.app.py
: The main application script that sets up the Streamlit app and integrates the Google search and summarization functionalities.requirements.txt
: Lists the Python dependencies required for the project.README.md
: Provides an overview and instructions for the project.
Contributions are welcome! Please feel free to submit a pull request or open an issue to improve the project.
This project is licensed under the MIT License. See the LICENSE file for details.