GL SDK Package Installation

What is the GL SDK Package?

The GL SDK package is a meta package for GenAI, BOSA, and many more. It acts as a centralized installer for the entire GL SDK family.

Installation

# you can use a Conda environment
pip install --extra-index-url https://oauth2accesstoken:$(gcloud auth print-access-token)@glsdk.gdplabs.id/gen-ai-internal/simple/ "gl-sdk"
Prerequisites

If you want to try the snippet code in this page:

Using a Library in GL SDK

1

Create a script called main.py:

import asyncio
from gllm_inference.lm_invoker import OpenAILMInvoker
from gllm_inference.model import OpenAILM

lm_invoker = OpenAILMInvoker(OpenAILM.GPT_5_NANO)
response = asyncio.run(lm_invoker.invoke("What is the capital city of Indonesia?"))
print(f"Response: {response}")
2

Run the script:

python main.py
3

The script will generate the following output (more or less):

[2025-09-17T15:12:36+0700.389 OpenAILMInvoker INFO] Invoking 'OpenAILMInvoker'
[2025-09-17T15:12:42+0700.907 httpx INFO] HTTP Request: POST https://api.openai.com/v1/responses "HTTP/1.1 200 OK"
Response: Jakarta. (Note: Indonesia has been planning to move its administrative capital to Nusantara in East Kalimantan, but Jakarta remains the capital for now.)

Extras

By default, if you install GL SDK you will get gllm-core and gllm-inference.

To keep the installation lean, GL SDK provides several extras. So you don't have to install libraries you don't need:

  1. genai = gllm-privacy, gllm-datastore, gllm-misc, gllm-docproc, gllm-retrieval, gllm-generation, gllm-pipeline, gllm-rag

  2. agent = gllm-agent, gllm-agents

  3. bosa = bosa-core, bosa-connectors

  4. eval = gllm-evals

You can install the extras as follows:

Last updated