Glossary service
1 min read
The tasks of the translation glossary service are to:
Load glossary from file for the languages involved in translation i.e.
source_languageandtarget_languageAnalyse the text to be translated and identify words that are part of the glossary
Prepare a glossary prompt part that is added to the prompt of the translation task sent to the LLM
Prerequisites
An .xlsx containing the desired translation must be uploaded to the Knowledge Base. A template for this glossary can be downloaded here:
example_glossary.xlsxExcel spreadsheetDownload
When uploading the document it will be automatically associated with a scope and the ID of this scope will be used as the scope_id to retrieve the glossary during translation.
You can obtain the Scope ID from the URL highlighted in the screenshot below.

The first row must contain the name of the language as in between the “..” in the table below
|
|
|
|---|
Configuration
Default
{
"scope_id": null,
"filename": null,
"active": false
}Pseudo Example
{
"scope_id": "scope_111111111111111111111111",
"filename": "glossary.xlsx",
"active": true
}Parameter Description
Parameter | Description | Default Value |
|---|---|---|
| The scope id within the knowledge base where the glossary file is stored | "" |
| The filename of the | "" |
| If the glossary is used or not |
|