Skip to content

vistec-AI/Sommai-Legal-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sommai Infrastructure

Overview

This project is organized into various applications and services that are deployed using Kubernetes manifests. The directory structure is designed to support a modular approach, using Kustomize for easier management of deployments and configurations.

Table of Contents

Kubernetes Structure

The kustomization structure is organized as follows:

infrastructure

.
├── applications
│   ├── embedding
│   ├── frontend
│   ├── llm
│   │   ├──wangchanx
│   │   ├──meta-llama-3
│   │   ├──meta-llama-3-1
│   │   ├──scb-typhoon-1-5
│   │   ├──sea-lion-2-1
│   ├── rag
│   └── webgateway
├── kustomization
│   ├── kustomization.yaml
│   ├── namespace.yaml
│   ├── keycloak.env
│   ├── postgres.env
│   ├── rag.env
├── third
│   ├── keycloak
│   ├── postgress
│   ├── rabbitmq

Applications

Each application in this project contains its own deployment, service, and kustomization YAML files to manage the Kubernetes resources.

Embedding

Contains resources for the embedding service, responsible for handling vector embeddings in the system.

  • deployment.yaml: Deploys the embedding service.
  • service.yaml: Exposes the embedding service internally/externally.

Frontend

Holds the resources for the frontend web interface of the project.

  • deployment.yaml: Manages the frontend deployment.
  • service.yaml: Exposes the frontend service.

LLM (Large Language Models)

Contains subdirectories for different LLM models used in the project.

  • wangchanx, meta-llama-3, meta-llama-3-1, scb-typhoon-1-5, sea-lion-2-1: Each subdirectory contains deployment, service, and kustomization files to manage specific LLM deployments.

RAG (Retrieval Augmented Generation)

Manages the RAG service, which is responsible for integrating retrieval capabilities with generative models.

  • deployment.yaml: Manages the RAG deployment.
  • service.yaml: Exposes the RAG service.

Web Gateway

Contains deployment and service files for the web gateway, which acts as the central access point for the project’s services.

  • deployment.yaml: Manages the gateway deployment.
  • service.yaml: Exposes the web gateway service.

Third-Party Integrations

This directory contains configurations for third-party tools required by the system.

Keycloak

Manages authentication and authorization for the system.

  • deployment.yaml: Deploys Keycloak.
  • service.yaml: Exposes Keycloak service.

Postgres

Holds the database configuration for the project.

  • statefulset.yaml: Deploys Postgres as a StatefulSet.
  • service.yaml: Exposes the Postgres database service.

RabbitMQ

Message broker service for handling messaging between services.

  • statefulset.yaml: Deploys RabbitMQ as a StatefulSet.
  • service.yaml: Exposes the RabbitMQ service.

Setup

  1. Ensure you have the following tools installed:
  2. Clone the repository:
    git clone https://github.com/vistec-AI/Sommai-Legal-Assistant.git
    cd sommai-legal-assistant/kustomize
  3. Apply Kustomize configurations:
    kustomize build kustomization/ | kubectl apply -f -

Usage

  • Deploy applications using Kustomize:
    kustomize build applications/embedding | kubectl apply -f -
  • Access the frontend application.
  • For authentication, use Keycloak to manage users and roles.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published