Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generative-IA

A collection of practical examples demonstrating how to build applications with Generative AI using Large Language Models (LLMs), prompt engineering, and AI APIs.


🚀 Overview

This repository contains hands-on examples for learning and experimenting with Generative AI technologies, including:

  • Prompt Engineering
  • Chat Completion APIs
  • AI-powered Python applications
  • LLM integrations
  • API authentication
  • Best practices for working with AI models

The project is intended for developers who want to understand how to build applications powered by modern Generative AI models.


📂 Project Structure

Generative-IA/
│
├── examples/            # Example applications
├── prompts/             # Prompt templates
├── data/                # Sample datasets (if applicable)
├── requirements.txt
├── README.md
└── *.py                 # Python source files

The exact structure may vary depending on the project.


⚙️ Requirements

  • Python 3.10+
  • pip
  • API key for the AI provider used in the examples

📦 Installation

Clone the repository:

git clone https://github.com/rubencruz/Generative-IA.git
cd Generative-IA

Create a virtual environment:

python -m venv .venv

Activate it:

Windows

.venv\Scripts\activate

Linux / macOS

source .venv/bin/activate

Install dependencies:

pip install -r requirements.txt

🔑 Environment Variables

Create a .env file and configure your API credentials:

API_KEY=your_api_key_here

Depending on the provider used, you may need variables such as:

OPENAI_API_KEY=
GEMINI_API_KEY=
IBM_API_KEY=

▶️ Running the Examples

Run a Python example:

python example.py

or

python app.py

Replace the filename with the example you want to execute.


📚 Topics Covered

  • Generative AI fundamentals
  • Prompt Engineering
  • Chat models
  • AI APIs
  • Python integration
  • Error handling
  • Environment variables
  • Best practices

🛠 Technologies

  • Python
  • Generative AI APIs
  • Large Language Models (LLMs)
  • REST APIs
  • dotenv

📖 Learning Objectives

After completing these examples, you'll understand how to:

  • Connect to AI APIs
  • Send prompts to LLMs
  • Process model responses
  • Build conversational applications
  • Manage API keys securely
  • Structure AI-powered Python projects

🤝 Contributing

Contributions are welcome!

Feel free to:

  • Open an Issue
  • Submit a Pull Request
  • Improve documentation
  • Add new AI examples

📄 License

This project is licensed under the MIT License.


👤 Author

Ruben Cruz

GitHub: https://github.com/rubencruz


⭐ If you find this repository useful, consider giving it a star.

About

Practical Generative AI examples using Python, LLMs, prompt engineering, and AI APIs. Explore integrations with OpenAI, Gemini, and IBM models, conversational applications, API authentication, and best practices for building AI-powered solutions.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages