L’indirizzo di riferimento del repository di Docker Hub è: https://hub.docker.com/r/geboai/gebo.ai

Installare il software con docker-composer per un IT manager, un professionista IT o un “power user” è piuttosto semplice:

  1. Esegui il file docker-compose.yml fornito con il comando docker-compose per avviare e far funzionare il sistema.
  2. Accedi alla pagina web del server su cui l’hai installato=> http://<indirizzo del tuo server>:12999/ e inserisci la tua email e una password per amministrare il software on premise localmente.
  3. Accedi al software e configura il sistema con la sezione “Setup” guidata fornita.

Attualmente, a causa della mancanza di database vettoriali installabili “on premise” sulle piattaforme Windows, il nostro software può essere installato utilizzando docker-composer sia su infrastrutture linux/*nix, mac che Windows Server. Sembra che, per i piani della maggior parte dei produttori di software infrastrutturale per la “AI Era”, Windows Server “non sia una cosa”. Ma per NOI di Gebo.ai, decisamente “LO È”, quindi forniremo trucchi e guide in futuro anche per l’installazione completa “On premise” di tutto lo stack.

Prerequisiti per eseguire la versione docker:

  • Docker e docker-composer (nella versione 2.X) devono essere installati sul tuo server (per il server Ubuntu scegli i pacchetti docker.io dal repository principale con la versione docker)
  • È necessario un account OpenAI e una chiave API (o una Nvidia NIM Api Key) abilitati per ricevere traffico e con un credito specifico sul tuo account (la sola sottoscrizione non è sufficiente, deve essere presente un credito aggiuntivo per supportare l’incorporamento della chiave API e le attività del chatbot).
  • Tutti gli altri provider di modelli linguistici di grandi dimensioni supportati o il server ollama possono essere configurati accedendo al pannello di amministrazione del software.
  • I firewall e il traffico di rete della tua azienda devono essere aperti per effettuare richieste e scambiare dati con i provider che sceglierai nel software come: OpenAI, XaI, Anthropic, Nvidia NIM oppure puoi utilizzare modelli linguistici di grandi dimensioni locali tramite il server ollama nella tua rete.

Se possiedi solo infrastrutture server Windows, installa il supporto lato server di Docker su di esso (https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tabs=dockerce#windows-server-1) oppure installa una VM Linux sulla tua infrastruttura virtuale come VM dedicata per testare questo sistema.

Di seguito è riportato un file docker-composer yml per avviare il sistema.

Per installare la tech preview 1.0.0.0-rc1 di docker Gebo.ai attualmente pubblicata su docker hub central https://hub.docker.com/r/geboai/gebo.ai puoi utilizzare il seguente file docker-compose.yml (questa versione funziona sia su Windows che su Linux):

version: '3.1'
#================================================================
# This compose file creates a service for gebo.ai enterprise retrive augmented generation system
# and its required mongodb (database) and qdrant (vector database) services
# once runned simply open the address http://<your host address:12999/ with your browser
# it will be required to create the administrative account and you'll be ready to setup and
# start immediately to share the application with your company or team.
services:
  # =======================
  # MongoDB
  # =======================
  # Bound only on loopback interface for security reasons
  mongo:
    image: mongo
    restart: always
    ports:
      - "127.0.0.1:27017:27017"
    environment:
      MONGO_INITDB_ROOT_USERNAME: mongoroot
      MONGO_INITDB_ROOT_PASSWORD: mongopwd
    command: ["mongod", "--wiredTigerCacheSizeGB=1"]
    
  # =======================
  # Qdrant
  # =======================
  # Bound only on loopback interface for security reasons
  qdrant:
    image: qdrant/qdrant
    restart: always
    ports:
      - "127.0.0.1:6333:6333"
      - "127.0.0.1:6334:6334"
    environment:
      QDRANT__SERVICE__API_KEY: ce7c85bc-f037-4c64-91d8-70335638329d
      QDRANT__STORAGE__OPTIMIZE_INDEXING: "true"
      QDRANT__STORAGE__RAM_DISK_SIZE: "256MB"
      QDRANT__STORAGE__MAX_SEGMENT_SIZE: "1000000"
    
  neo4j:
     image: neo4j:5
     restart: always
     ports:
      - "127.0.0.1:7474:7474"
      - "127.0.0.1:7687:7687"
     environment:
      NEO4J_AUTH: "neo4j/neo4jmaster"
      NEO4J_server_memory_heap_initial__size: 1G
      NEO4J_server_memory_heap_max__size: 2G
      NEO4J_server_memory_pagecache_size: 512M
      NEO4JLABS_PLUGINS: '["apoc"]'
      NEO4J_apoc_export_file_enabled: "true"
      NEO4J_apoc_import_file_enabled: "true"
      NEO4J_apoc_import_file_use__neo4j__config: "true"
  # =======================
  # gebo.ai 
  # =======================
  # Bound to all host interface
  gebo.ai:
    image: geboai/gebo.ai
    restart: always
    ports:
      - "12999:12999"
    depends_on:
      - mongo
      - qdrant
      - neo4j 
    deploy:
      resources:
        limits:
          # Limit memory usage to 4GB
          memory: 4G
          
    environment:
      #SPRING_PROFILES_ACTIVE: "prod"
      #Jvm settings
      JAVA_TOOL_OPTIONS:
        --enable-native-access=ALL-UNNAMED 
        -Dsun.jnu.encoding=UTF-8 
        -Dfile.encoding=UTF-8    
        -Dai.gebo.neo4j.enabled=true        
        -XX:+AggressiveHeap         
        -XX:+PrintGCDetails        
        -Xlog:gc:/opt/gebo.ai/logs/gc.log 
        -Xms2g
        -Xmx4g
        -XX:MaxMetaspaceSize=512m
        --add-opens=java.base/java.nio.charset=ALL-UNNAMED         

Questo è un docker-compose.yml più sicuro e specifico per Linux che presuppone che tu abbia creato un utente gebo.ai nella cui home page il software viene eseguito e che tale utente possa accedere alla cartella /mnt in cui hai montato i filesystem condivisi della tua azienda. Crea tutte le directory elencate prima di eseguire questo file docker-compose.yml:

version: "3.1"
#================================================================
# This compose file creates a service for gebo.ai enterprise retrive augmented generation system
# and its required mongodb (database) and qdrant (vector database) services
# once runned simply open the address http://<your host address:12999/ with your browser
# it will be required to create the administrative account and you'll be ready to setup and
# start immediately to share the application with your company or team.
services:
  # =======================
  # MongoDB
  # =======================
  # Bound only on loopback interface for security reasons
  mongo:
    image: mongo
    restart: always
    ports:
      - "127.0.0.1:27017:27017"
    environment:
      MONGO_INITDB_ROOT_USERNAME: mongoroot
      MONGO_INITDB_ROOT_PASSWORD: mongopwd
    command: ["mongod", "--wiredTigerCacheSizeGB=1"]
    volumes:
      # Bind mount a local directory instead of named volume
      - /home/gebo.ai/mongo:/data/db
  # =======================
  # Qdrant
  # =======================
  # Bound only on loopback interface for security reasons
  qdrant:
    image: qdrant/qdrant
    restart: always
    ports:
      - "127.0.0.1:6333:6333"
      - "127.0.0.1:6334:6334"
    environment:
      QDRANT__SERVICE__API_KEY: ce7c85bc-f037-4c64-91d8-70335638329d
      QDRANT__STORAGE__OPTIMIZE_INDEXING: "true"
      QDRANT__STORAGE__RAM_DISK_SIZE: "256MB"
      QDRANT__STORAGE__MAX_SEGMENT_SIZE: "1000000"
    volumes:
      # Bind mount a local directory
      - /home/gebo.ai/qdrant:/qdrant/storage
  neo4j:
    image: neo4j:5
    restart: always
    # Expose HTTP (7474) and Bolt (7687) on loopback for local access
    ports:
      - "127.0.0.1:7474:7474"
      - "127.0.0.1:7687:7687"
    environment:
      # Auth: username/password
      NEO4J_AUTH: "neo4j/neo4jmaster"
      # Optional tuning (comment out if not needed)
      NEO4J_server_memory_heap_initial__size: 1G
      NEO4J_server_memory_heap_max__size: 2G
      NEO4J_server_memory_pagecache_size: 512M
      # Allow APOC when you add the plugin in /plugins
      NEO4JLABS_PLUGINS: '["apoc"]'
      NEO4J_apoc_export_file_enabled: "true"
      NEO4J_apoc_import_file_enabled: "true"
      NEO4J_apoc_import_file_use__neo4j__config: "true"
    volumes:
      - /home/gebo.ai/neo4j/data:/data
      - /home/gebo.ai/neo4j/logs:/logs
      - /home/gebo.ai/neo4j/plugins:/plugins
      - /home/gebo.ai/neo4j/import:/import
  # =======================
  # gebo.ai
  # =======================
  # Bound to all host interface
  gebo.ai:
    image: geboai/gebo.ai
    restart: always
    ports:
      - "12999:12999"
    depends_on:
      - mongo
      - qdrant
      - neo4j
    volumes:
      # Bind mount two local directories for work and home
      - /home/gebo.ai/work:/opt/gebo.ai/work
      - /home/gebo.ai/home:/opt/gebo.ai/home
      - /home/gebo.ai/logs:/opt/gebo.ai/logs
      - /mnt:/opt/gebo.ai/shares
    deploy:
      resources:
        limits:
          # Limit memory usage to 4GB
          memory: 4G
    environment:
      SPRING_PROFILES_ACTIVE: "prod"
      #Jvm settings
      JAVA_TOOL_OPTIONS: --enable-native-access=ALL-UNNAMED
        -Dsun.jnu.encoding=UTF-8
        -Dfile.encoding=UTF-8
        -Dai.gebo.neo4j.enabled=true       
        -XX:+AggressiveHeap
        -XX:+PrintGCDetails
        -Xlog:gc:/opt/gebo.ai/logs/gc.log
        -Xms2g
        -Xmx4g
        -XX:MaxMetaspaceSize=512m
        --add-opens=java.base/java.nio.charset=ALL-UNNAMED

Scrivi uno di questi file docker-compose.yml nel tuo file locale docker-compose.yml e avvia il software con il comando “docker-compose up -d”.

L’avvio del software richiederà un po’ di tempo, dopodiché vai su: http://<il tuo server>:12999/ per configurare l’account amministrativo e la chiave API degli account dei tuoi provider LLMS (openai, nvidia nim o groq).

Attualmente, per ottenere risultati migliori, suggeriamo di utilizzare chiavi API chatgpt/openai con un credito adeguato specificamente caricato per utilizzare il sistema.

Dopo la prima procedura di configurazione, il sistema imposterà automaticamente gpt4-o come modello di chat e un modello di embedding openai appropriato per indicizzare in modo coerente la knowledge base della tua azienda e assistere i tuoi utenti con chat specifiche di generazione aumentata di recupero.