No description
  • HTML 35.4%
  • JavaScript 19.8%
  • CSS 14.6%
  • Go 11.1%
  • Rust 8.2%
  • Other 10.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
securityeng-bot[bot] 0f4aaed5a5
fix: use lockfile-aware install commands (#34)
Co-authored-by: securityeng-bot[bot] <219863240+securityeng-bot[bot]@users.noreply.github.com>
2026-06-15 11:56:24 -04:00
.github/workflows refactor: extract shared models.yml to eliminate model config duplication (#32) 2026-06-01 09:23:23 +02:00
go-genai refactor: extract shared models.yml to eliminate model config duplication (#32) 2026-06-01 09:23:23 +02:00
node-genai fix: use lockfile-aware install commands (#34) 2026-06-15 11:56:24 -04:00
py-genai refactor: extract shared models.yml to eliminate model config duplication (#32) 2026-06-01 09:23:23 +02:00
rust-genai refactor: extract shared models.yml to eliminate model config duplication (#32) 2026-06-01 09:23:23 +02:00
.gitignore Merge branch 'main' into main 2025-07-28 17:13:13 +03:00
.npmrc ci: add ignore-scripts to Node package manager config (20260527-154931) (#30) 2026-06-04 12:30:14 -04:00
docker-compose.yml Update DMR integration to new Compose integration (#13) 2025-10-09 09:41:17 +01:00
Dockerfile Initial commit 2025-03-28 11:17:35 +01:00
LICENSE Initial commit 2025-03-28 11:17:35 +01:00
models.yml refactor: extract shared models.yml to eliminate model config duplication (#32) 2026-06-01 09:23:23 +02:00
README.md Update DMR integration to new Compose integration (#13) 2025-10-09 09:41:17 +01:00

hello-genai

A simple chatbot web application built in Go, Python and Node.js that connects to a local LLM service (llama.cpp) to provide AI-powered responses.

Environment Variables

The application uses the following environment variables defined in the .env file:

  • LLM_BASE_URL: The base URL of the LLM API
  • LLM_MODEL_NAME: The model name to use

To change these settings, simply edit the .env file in the root directory of the project.

Quick Start

  1. Clone the repository:

    git clone https://github.com/docker/hello-genai
    cd hello-genai
    
  2. Start the application using Docker Compose:

    docker compose up
    
  3. Open your browser and visit the following links:

    http://localhost:8080 for the GenAI Application in Go

    http://localhost:8081 for the GenAI Application in Python

    http://localhost:8082 for the GenAI Application in Node

    http://localhost:8083 for the GenAI Application in Rust

Requirements

  • macOS (recent version)
  • Either:
    • Docker and Docker Compose (preferred)
    • Go 1.21 or later
  • Local LLM server

If you're using a different LLM server configuration, you may need to modify the.env file.