Skip to content

TMS to LLM and Back

Use this example when a TMS is already part of your process. For content processing directly from its source system with Lake context, start with Add Lake context to a Bird.

An Egg is a downloadable Bird example. For a guided setup using your Apps, start with a Blueprint.

In this Egg-guide, let’s explore some options to integrate a TMS and an LLM. Find Downloadable Eggs at the end!

  1. Trigger: status in your TMS Files or Tasks or Projects reach a certain status in your TMS Bird
  2. File download Files are downloaded from the TMS.
  3. LLM The downloaded files are sent to an LLM for processing.
  4. Processed file upload Processed files are uploaded back to the TMS.

TMS and AI translation Bird structure

This diagram shows the steps. Configure the imported Bird in the current editor.

  • Prompt: Within the optional inputs, you can add your own instructions for the LLM.
  • Bucket size: XLIFF files can contain a lot of segments. Each action takes your segments and sends them to the LLM for processing. It’s possible that the amount of segments is so high that the prompt exceeds the model’s context window or that the model takes longer than Blackbird actions are allowed to take. This is why we have introduced the bucket size parameter. You can tweak the bucket size parameter to determine how many segments to send to the LLM at once. This will allow you to split the workload into different calls. The trade-off is that the same context prompt needs to be sent along with each request (which increases the tokens used). From experiments we have found that a bucket size of 1500 is sufficient for models like gpt-4o. That’s why 1500 is the default bucket size, however other models may require different bucket sizes.
  • Polling Events: Some Apps use polling instead of webhooks to detect updated/new files. Check for an Interval tab when setting up your trigger and choose the appropriate time for you (see current polling limits).
  • Terminology: Keep approved terminology in Lake termbases and use Prepare Content to include it in compatible file processing. An action with a separate glossary input needs that glossary mapped explicitly.
  • Target language: You can select a language from the inputs of the LLM App you are using. If none are provided, the languages will be extracted from the header of your XLIFF files.
  • Optional parameters: Many LLM Apps offer different parameters to be set, such as formality, temperature, models and bucket size. Check the input tab for all steps.
  • Loops are needed: Whether to iterate through a list of target languages or to send each file within a group of downloaded files to an action that only takes one at a time, loops are the key.

Download JSON Birds to import into your Nest, make any desired adjustments, and fly.

Download the JSON example, select the intended Nest, and use Import from the Birds page. Open the imported Bird, choose your App connections, and complete its settings. Review Bird Tasks before saving or publishing.

See Building a Bird for setup and your first Flight.