Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions tutorial/CodeTrans/CodeTrans_Guide.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
.. _CodeTrans_Guide:

Code Translations
Code Translation
##############################

.. note:: This guide is in its early development and is a work-in-progress with
placeholder content.

Overview
********

This example showcases a code translation system that converts code from one programming language to another while preserving the original logic and functionality. The primary component is the CodeTrans MegaService, which encompasses an LLM microservice that performs the actual translation.
A lightweight Gateway service and a User Interface allow users to submit their source code in a given language and receive the translated output in another language.
A lightweight gateway service and a user interface allow users to submit their source code in a given language and receive the translated output in another language.

Purpose
*******
Expand All @@ -28,18 +25,16 @@ How It Works

1. A user specifies the source language, the target language, and the snippet of code to be translated. This request is handled by the front-end UI or via a direct API call.

2. The user’s request is sent to the CodeTrans gateway, which orchestrates the call to the LLM microservice. The gateway handles details like constructing prompts and managing responses.

2. The user’s request is sent to the CodeTrans Gateway, which orchestrates the call to the LLM MicroService. The gateway handles details like constructing prompts and managing responses.


3. The large language model processes the user’s code snippet, analyzing syntax and semantics before generating an equivalent snippet in the target language.
3. The large language model processes the user’s code snippet by analyzing syntax and semantics before generating an equivalent snippet in the target language.

4. The gateway formats the model’s output and returns the translated code to the user, either via an API response or rendered within the UI.
4. The gateway formats the model’s output and returns the translated code to the user, via an API response or rendered within the UI.


Deployment
**********
Here are some deployment options, depending on your hardware and environment:
Here are some deployment options, depending on the hardware and environment:

Single Node
+++++++++++++++
Expand Down
Loading