Skip to content

SIDDHU123M/AI-SearchEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Search Engine

A modern, AI-powered search engine that combines the intelligence of OpenAI with web search capabilities to provide comprehensive answers to your questions.


🌟 Features

  • 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

🛠️ Technology Stack

Backend

  • 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

Frontend

  • HTML5/CSS3/JavaScript
  • Tailwind CSS: For responsive styling
  • Font Awesome: For icons
  • Highlight.js: For code syntax highlighting
  • Markdown-it: For rendering markdown content

📋 Prerequisites

  • Python 3.12 or higher
  • OpenAI API key
  • Microphone (for voice search)

🚀 Installation

  1. Clone the repository

    git clone https://github.com/SIDDHU123M/AI-SearchEngine.git
    cd AI-searchEngine
  2. Create a virtual environment

    python -m venv venv
    venv\Scripts\activate
  3. Install dependencies

    pip install -r requirements.txt
  4. Set up environment variables

    • Create a .env file in the root directory
    • Add your OpenAI API key:
      openaiAPI = "your-openai-api-key-here"
      
  5. Create required directories

    mkdir cache bookmarks
  6. Run the application

    python app.py
  7. Access the application

    • Open your browser and go to http://localhost:5000

💻 Usage

  • 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

📁 Project Structure

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

🔮 Future Improvements

  • User accounts for personalized experience
  • Advanced search filters
  • Mobile app version
  • Browser extension
  • Multi-language support
  • PDF/document search

📄 License

This project is licensed under the MIT License.


🙏 Acknowledgements


Created with ❤️ by Sidharth and Copilot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published