A modern, AI-powered search engine that combines the intelligence of OpenAI with web search capabilities to provide comprehensive answers to your questions.
- AI-Powered Answers: Get detailed, context-aware responses generated by OpenAI's language model
- Web Sources: See the web sources used to generate answers
- Voice Search: Ask questions using your voice (browser + microphone required)
- Related Questions: Discover related queries to explore topics further
- Bookmarking: Save important search results for future reference
- Search History: Keep track of your previous searches
- Dark Mode: Toggle between light and dark themes
- Responsive Design: Works on desktop and mobile
- Caching: Faster responses for repeated queries
- Python 3.12+
- Flask: Web server framework
- OpenAI API: For generating AI responses
- DuckDuckGo Search API: For retrieving web search results
- BeautifulSoup4 & Readability: For web content extraction
- SpeechRecognition & PyAudio: For voice recognition
- HTML5/CSS3/JavaScript
- Tailwind CSS: For responsive styling
- Font Awesome: For icons
- Highlight.js: For code syntax highlighting
- Markdown-it: For rendering markdown content
- Python 3.12 or higher
- OpenAI API key
- Microphone (for voice search)
-
Clone the repository
git clone https://github.com/SIDDHU123M/AI-SearchEngine.git cd AI-searchEngine
-
Create a virtual environment
python -m venv venv venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Set up environment variables
- Create a
.env
file in the root directory - Add your OpenAI API key:
openaiAPI = "your-openai-api-key-here"
- Create a
-
Create required directories
mkdir cache bookmarks
-
Run the application
python app.py
-
Access the application
- Open your browser and go to
http://localhost:5000
- Open your browser and go to
- Type your question in the search box and click Search or press Enter
- Use voice search by clicking the microphone icon
- Bookmark results for later reference
- View your search history and revisit previous queries
- Toggle dark mode for comfortable viewing
AI-searchEngine/
├── app.py # Main Flask application
├── main_engine.py # Search engine core logic
├── requirements.txt # Python dependencies
├── .env # Environment variables (not in repo)
├── static/ # Static assets (CSS)
├── templates/ # HTML templates
├── cache/ # Cached search results
├── bookmarks/ # Saved bookmarks
└── README.md # Project documentation
- User accounts for personalized experience
- Advanced search filters
- Mobile app version
- Browser extension
- Multi-language support
- PDF/document search
This project is licensed under the MIT License.
- OpenAI for the language models
- DuckDuckGo for the search API
- Flask for the web framework
- Tailwind CSS for styling
- All open-source libraries used in this project
Created with ❤️ by Sidharth and Copilot