Git Product home page Git Product logo

genai-labs's Introduction

Generative AI Labs

This repository contains code samples for Generative AI, including different use cases. Some examples can be executed in Colab (with GPU mandatory in some), while others would require Vertex AI.

This repo contains some exercises to be completed. In some files, code may contain some TODO to be completed/filled. The solution is not included in this repo.

Setup and authentication instructions of Vertex SDK are available here. Make sure you install latest version of the Vertex SDK: pip install google-cloud-aiplatform --upgrade. Other dependencies may be required. Those are indicated in the code.

01 Prompting

ask-bigquery Gradio demo

Notes:

  • SQLAlchemy does not work with bigquery-public-data datasets due to permissions, use a custom dataset instead.
  • Make sure your query is not empty, otherwise you will get unexpected non-workable behaviour. You need to fill the input prompt.
pip install langchain==0.0.191 --quiet
pip install google-cloud-core --quiet
pip install gradio --quiet

# Below libraries are required to build a SQL engine for BigQuery and other DBs
pip install SQLAlchemy --quiet
pip install sqlalchemy-bigquery --quiet
pip install clickhouse-sqlalchemy --quiet

02 Tuning

03 AI infra

Tutorials Distributed Training:

  1. Colab: TensorFlow with GPU
  2. Keras tutorial: Multi-GPU distributed training with TensorFlow
  3. Keras tutorial: Multi-GPU distributed training with JAX
  4. Keras tutorial: Distributed training with Keras 3 tutorial shows model distribution, as well as data distribution.

04 Multimodality

05 Retrieval Augmented Generation (RAG)

References

[1] SDK documentation: Generative AI client libraries - Vertex AI

[2] Google Cloud blog post: Building AI-powered apps on Google Cloud databases using pgvector, LLMs and LangChain

[3] Towards Data Science article: LangChain: Develop applications powered by Language Models

genai-labs's People

Contributors

rafaelsf80 avatar

Stargazers

David González Romero avatar  avatar Ignacio García avatar Israel Herraiz avatar

Watchers

 avatar

Forkers

iht

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.