Home

Awesome

Generative AI Examples

version license


Introduction

GenAIExamples are designed to give developers an easy entry into generative AI, featuring microservice-based samples that simplify the processes of deploying, testing, and scaling GenAI applications. All examples are fully compatible with Docker and Kubernetes, supporting a wide range of hardware platforms such as Gaudi, Xeon, and NVIDIA GPU, and other hardwares, ensuring flexibility and efficiency for your GenAI adoption.

Architecture

GenAIComps is a service-based tool that includes microservice components such as llm, embedding, reranking, and so on. Using these components, various examples in GenAIExample can be constructed, including ChatQnA, DocSum, etc.

GenAIInfra, part of the OPEA containerization and cloud-native suite, enables quick and efficient deployment of GenAIExamples in the cloud.

GenAIEval measures service performance metrics such as throughput, latency, and accuracy for GenAIExamples. This feature helps users compare performance across various hardware configurations easily.

Getting Started

GenAIExamples offers flexible deployment options that cater to different user needs, enabling efficient use and deployment in various environments. Here’s a brief overview of the three primary methods: Python startup, Docker Compose, and Kubernetes.

Users can choose the most suitable approach based on ease of setup, scalability needs, and the environment in which they are operating.

Deployment Guide

Deployment are based on released docker images by default, check docker image list for detailed information. You can also build your own images following instructions.

Prerequisite

Deploy Examples

Use CaseDocker Compose<br/>Deployment on XeonDocker Compose<br/>Deployment on GaudiKubernetes with ManifestsKubernetes with Helm ChartsKubernetes with GMC
ChatQnAXeon InstructionsGaudi InstructionsChatQnA with ManifestsChatQnA with Helm ChartsChatQnA with GMC
CodeGenXeon InstructionsGaudi InstructionsCodeGen with ManifestsCodeGen with Helm ChartsCodeGen with GMC
CodeTransXeon InstructionsGaudi InstructionsCodeTrans with ManifestsCodeTrans with Helm ChartsCodeTrans with GMC
DocSumXeon InstructionsGaudi InstructionsDocSum with ManifestsDocSum with Helm ChartsDocSum with GMC
SearchQnAXeon InstructionsGaudi InstructionsNot SupportedNot SupportedSearchQnA with GMC
FaqGenXeon InstructionsGaudi InstructionsFaqGen with ManifestsNot SupportedFaqGen with GMC
TranslationXeon InstructionsGaudi InstructionsTranslation with ManifestsNot SupportedTranslation with GMC
AudioQnAXeon InstructionsGaudi InstructionsAudioQnA with ManifestsNot SupportedAudioQnA with GMC
VisualQnAXeon InstructionsGaudi InstructionsVisualQnA with ManifestsNot SupportedVisualQnA with GMC
ProductivitySuiteXeon InstructionsNot SupportedProductivitySuite with ManifestsNot SupportedNot Supported

Supported Examples

Check here for detailed information of supported examples, models, hardwares, etc.

Contributing to OPEA

Welcome to the OPEA open-source community! We are thrilled to have you here and excited about the potential contributions you can bring to the OPEA platform. Whether you are fixing bugs, adding new GenAI components, improving documentation, or sharing your unique use cases, your contributions are invaluable.

Together, we can make OPEA the go-to platform for enterprise AI solutions. Let's work together to push the boundaries of what's possible and create a future where AI is accessible, efficient, and impactful for everyone.

Please check the Contributing guidelines for a detailed guide on how to contribute a GenAI component and all the ways you can contribute!

Thank you for being a part of this journey. We can't wait to see what we can achieve together!

Additional Content