Welcome to the Jarvis Assistant project! This is a basic implementation of a conversational assistant that leverages the power of generative AI to interact with users, answer questions, and perform basic actions. As this project evolves, it will continue to receive new functionalities and improvements.
- Conversational Abilities: Ask Jarvis questions or give commands, and it will respond with the best possible answer.
- Multiple Responses: When available, Jarvis can offer additional responses for you to choose from.
- Natural Language Processing: Utilizes the NLTK (Natural Language Toolkit) library for tokenization and part-of-speech tagging.
- Powered by Google Gemini: This assistant is powered by Google Gemini, Google's generative AI technology, enabling advanced content generation.
- Python 3.9+: The Jarvis Assistant requires Python version 3.9 or higher to function properly.
- Gemini API Key - Generate Here
The package is not available yet
First, you'll need to clone the repository from GitHub to your local machine.
git clone https://github.com/rafaelherik/jarvis.git
cd jarvis
Before building the package, ensure you have the necessary tools installed. You’ll need setuptools and wheel, which are commonly used to build Python packages.
pip install setuptools wheel
Once you are inside the cloned repository directory, you can build the package using the following command:
python setup.py sdist bdist_wheel
This command will generate distribution files (both source distribution and wheel) in the dist/ directory.
- sdist creates a source distribution (a .tar.gz file).
- bdist_wheel creates a wheel distribution (a .whl file).
Now that you have built the package, you can install it locally using pip:
- Installing from the Source Distribution (.tar.gz):
pip install dist/jarvispy-0.1.0.tar.gz
- Installing from the Wheel Distribution (.whl):
pip install dist/jarvispy-0.1.0-py3-none-any.whl
This will install the package and make it available in your Python environment.
You can verify that the package is installed correctly by running:
pip show jarvispy
This will display details about the installed package, confirming that it has been installed in your environment.
Firt you must configure the Gemini API_KEY to use:
jarvis-setup
Then it will download the nltk_data and asks for the API_KEY:
Downloading NLTK data... This may take a moment.
Please enter your Google Gemini API_KEY:
After you enter the API it will show:
API Key saved to /Users/jarvispy/.jarvispy/config.txt
After the setup is complete you can run the assistant:
jarvis
Then the prompt will wait for your input:
Setting up Jarvis Assistant... Downloading NLTK data...
Good Afternoon!
Welcome! I'm your jarvis assistant. Here’s how you can interact with me:
1. You can ask me questions (e.g., 'What is the weather today?').
2. You can give me commands (e.g., 'Add project context').
3. If you want to exit, simply type 'exit' or 'quit'.
How can I assist you today?
You: _
This project is powered by Google Gemini, a cutting-edge generative AI model developed by Google. Google Gemini is designed to generate content and perform natural language understanding tasks, making it ideal for conversational AI applications.
The Natural Language Toolkit (NLTK) is a powerful Python library for working with human language data. In this project, NLTK is used for tokenizing user input and performing part-of-speech tagging, which helps the assistant understand the structure and meaning of your queries.
Google Gemini is a generative AI model developed by Google, known for its advanced language understanding and content generation capabilities. By integrating Google Gemini, Jarvis Assistant can provide high-quality responses to a wide range of queries, offering a state-of-the-art conversational experience.
As this project is under active development, contributions are welcome! Feel free to fork the repository, submit pull requests, or suggest new features by opening an issue.
This project is licensed under the MIT License. See the LICENSE file for more details.