Skip to main content

A library containing RAG pipeline builders and presets for Gen AI applications.

Project description

GLLM RAG

Description

A library containing Retrieval-Augmented Generation (RAG) pipeline builders and presets for Gen AI applications.

Installation

Prerequisites

  1. Python 3.11+ - Install here
  2. Pip (if using Pip) - Install here
  3. Poetry 2.1.4+ - Install here
  4. Git (if using Git) - Install here
  5. For artifact registry installation:
  6. For git installation, access to the GDP Labs SDK github repository

1. Installation from Artifact Registry

Choose one of the following methods to install the package:

Using pip

pip install keyring keyrings.gl-artifactregistry-auth
pip install gllm-rag-binary --index-url https://glsdk.gdplabs.id/gen-ai/simple

Using Poetry

poetry source add --priority=explicit gen-ai https://glsdk.gdplabs.id/gen-ai/simple
poetry config http-basic.gen-ai oauth2accesstoken "$(gcloud auth print-access-token)"
poetry add --source gen-ai gllm-rag-binary

2. Development Installation (Git)

For development purposes, you can install directly from the Git repository:

git clone git@github.com:GDP-ADMIN/gl-sdk.git
cd gl-sdk/libs/gllm-rag

Local Development Setup

Quick Setup (Recommended)

For local development with editable gllm packages, use the provided Makefile:

# Complete setup: installs Poetry, configures auth, installs packages, sets up pre-commit
make setup

The following are the available Makefile targets:

  1. make setup - Complete development setup (recommended for new developers)
  2. make install-poetry - Install or upgrade Poetry to the latest version
  3. make auth - Configure authentication for internal repositories
  4. make install - Install all dependencies
  5. make install-pre-commit - Set up pre-commit hooks
  6. make update - Update dependencies

Manual Development Setup (Legacy)

If you prefer to manage dependencies manually:

  1. Go to root folder of gllm-rag module, e.g. cd libs/gllm-rag.
  2. Run poetry shell to create a virtual environment.
  3. Run poetry lock to create a lock file if you haven't done it yet.
  4. Run poetry install to install the gllm-rag requirements for the first time.
  5. Run poetry update if you update any dependency module version at pyproject.toml.

Contributing

Please refer to this Python Style Guide to get information about code style, documentation standard, and SCA that you need to use when contributing to this project

Getting Started with Development

  1. Clone the repository and navigate to the gllm-rag directory
  2. Run make setup to set up your development environment
  3. Run which python to get the path to be referenced at Visual Studio Code interpreter path (Ctrl+Shift+P or Cmd+Shift+P)
  4. Try running the unit test to see if it's working:
poetry run pytest -s tests/unit_tests/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gllm_rag_binary-0.5.0b1-cp312-cp312-win_amd64.whl (327.5 kB view details)

Uploaded CPython 3.12Windows x86-64

gllm_rag_binary-0.5.0b1-cp312-cp312-manylinux_2_31_x86_64.whl (562.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_rag_binary-0.5.0b1-cp312-cp312-macosx_13_0_arm64.whl (354.8 kB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_rag_binary-0.5.0b1-cp311-cp311-win_amd64.whl (333.2 kB view details)

Uploaded CPython 3.11Windows x86-64

gllm_rag_binary-0.5.0b1-cp311-cp311-manylinux_2_31_x86_64.whl (514.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_rag_binary-0.5.0b1-cp311-cp311-macosx_13_0_arm64.whl (350.8 kB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_rag_binary-0.5.0b1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_rag_binary-0.5.0b1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4005df984233e65d6462ca8f0a302ddcb38bf21a9abd2ee8f6173430a752b918
MD5 7121f16a446cc5f7476c28976d9fdb03
BLAKE2b-256 953d29474afaae98ad5a1dc2f6a9383bba50c098394f581460585283059afc05

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_rag_binary-0.5.0b1-cp312-cp312-win_amd64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gllm_rag_binary-0.5.0b1-cp312-cp312-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gllm_rag_binary-0.5.0b1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 180c63c287de30604ed784e01ba07c8c91b2a03297f8c67cdb968a30adef8ff9
MD5 327fcb7991bdd603ab66bccfbe963689
BLAKE2b-256 ab022306a97f2620d7f8cc9040e5b1317d71b8ec7f19583f681db892745e63b1

See more details on using hashes here.

File details

Details for the file gllm_rag_binary-0.5.0b1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_rag_binary-0.5.0b1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bee404037b5c1aa699972f806876920e3871335edc26dce7dbce58e5be20e8a3
MD5 ae224f54de3c2d9cbca71e6e7793045e
BLAKE2b-256 d7a35081977724d2ae5fc6182bb8192bf9f59ba75c5f385c9023b41d2af54898

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_rag_binary-0.5.0b1-cp312-cp312-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gllm_rag_binary-0.5.0b1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_rag_binary-0.5.0b1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d6dcfcf5d788b79e1312b5a574646d41360c0fe5906b3a604fba289390764be6
MD5 781319bc802f72e976c4200a335b26c5
BLAKE2b-256 e21bec371f6864a458f889436e832f9945955d8d0acd33bf93b8217a572aa2f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_rag_binary-0.5.0b1-cp311-cp311-win_amd64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gllm_rag_binary-0.5.0b1-cp311-cp311-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gllm_rag_binary-0.5.0b1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1299e583c2e32fdc5d7cff7aa44db5365342f7f18403a4fc67165811ad6fc9b1
MD5 61ff2d7974cfb397a6d75929b5eb6e86
BLAKE2b-256 e029738a2fd5413084bf1d68f6783741c6a4e118bd24af8772fdc30906a2ab7d

See more details on using hashes here.

File details

Details for the file gllm_rag_binary-0.5.0b1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_rag_binary-0.5.0b1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0202837380391d2346db7200e43b9c1e3bdf91a2e58a987b5659a0b28be1fd46
MD5 ba9ed35a55e5cc5431ece53b43b7c28e
BLAKE2b-256 934b6d54bc7d611addad0904f09652237877801fd8fc7af56647bf68abdd1bd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_rag_binary-0.5.0b1-cp311-cp311-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page