This project showcases the use of Testcontainers in Golang to establish an efficient development environment for Generative AI applications. It consists of various examples:
- hello-world: Generates text using a language model.
- streaming: Demonstrates text generation in streaming mode.
- chat: Implements text generation for chat applications.
- vision-model: Extracts text from images using a vision model.
- augmented-generation: Enhances prompts with additional context for improved output.
- embeddings: Generates text embeddings and calculates similarities.
- rag: Introduces Retrieval-Augmented Generation for optimized responses.
- testing: Evolves testing methodologies using Evaluator Agents.
- huggingface: Integrates HuggingFace models with Docker.
- functions: Illustrates using functions with language models.
The project requires Go 1.23+, Docker, and Docker Model Runner. Models can be pulled from Docker Hub, and necessary Docker images are also provided for running the examples effortlessly.