Giter Site home page Giter Site logo

einstein-ai's Introduction

Einstein AI Assistant

Einstein is an AI assistant built in Python that can perform various tasks based on user commands. It uses natural language processing (NLP) for interpreting input and executing actions accordingly.

Features

  • Natural Language Understanding (NLU): Parses user input to extract actions and targets using part-of-speech tagging.
  • Action Execution: Executes corresponding actions based on parsed commands, such as opening websites, playing music, managing tasks, and more.
  • Database Interaction: Supports CRUD (Create, Read, Update, Delete) operations for managing books, recipes, tasks, notes, movies, music, contacts, and quotes in a SQLite database.
  • Modular Architecture: Organized into separate modules (language, action_executor, and database) for better code structure and maintainability.

Usage

  1. Setup:

    • Ensure Python 3.x is installed on your system.
    • Install required libraries using pip:
      pip install nltk newsapi-python sqlite3
  2. Configuration:

    • Obtain a News API key from NewsAPI and update api_key.py with your key.
    • Customize the dictionary in list.py to define supported commands.
  3. Execution:

    • Run main.py to start the Einstein AI assistant.
    • Enter commands in natural language (e.g., "Open Google", "Add a book").
  4. Supported Actions:

    • Open: Open specific websites (e.g., Google, YouTube).
    • Play: Play music or movies.
    • Create: Create folders.
    • Get: Fetch news headlines, books, recipes, tasks, notes, movies, music, contacts, or quotes.
    • Add: Add new entries to the database (e.g., books, recipes, tasks).
    • Update: Update existing entries in the database (e.g., update a book).
    • Delete: Delete entries from the database (e.g., delete a task).

File Structure

  • brain.py: Entry point for the Einstein AI assistant.
  • language.py: Module for natural language processing and interpretation.
  • action_executor.py: Module for executing actions based on interpreted commands.
  • database.py: Module for interacting with the SQLite database.
  • api_key.py: Stores API keys (e.g., NewsAPI key).
  • list.py: Defines the dictionary mapping commands to actions.
  • data/brain.db: SQLite database file for storing persistent data.

Contributions

Contributions to improve the functionality and code quality of this project are welcome! If you have any suggestions, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

einstein-ai's People

Contributors

kshula avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.