A package to learn Generative AI through practical examples.
- Install Ollama: Follow the instructions at Ollama's official website to install Ollama for your operating system.
You can install Learn GenAI using either pip or Poetry.
pip install learn_genai
-
If you haven't installed Poetry yet, install it first:
pip install poetry
-
Create a new project or navigate to your existing project directory.
-
Add Learn GenAI to your project:
poetry add learn_genai
After installation, run the application with:
learn_genai
-
Activate the Poetry shell:
poetry shell
-
Run the application:
learn_genai
Alternatively, you can run it without activating the shell:
poetry run learn_genai
This will open a Streamlit interface in your default web browser, where you can explore three use cases:
- Text Summarizer
- RAG Chatbot
- LangGraph Agents
Each use case demonstrates different aspects of Generative AI using the Llama3.2:3b model and other advanced NLP techniques.
If you encounter any issues:
- Ensure Ollama is properly installed and running.
- Check that you're using a compatible Python version (3.8 or higher recommended).
- If using Poetry, make sure you're in the correct project directory.
- Try updating the package to the latest version:
- With pip:
pip install --upgrade learn_genai
- With Poetry:
poetry update learn_genai
- With pip:
For more detailed information or if you encounter any problems, please refer to our GitHub repository or open an issue.