Skip to main content

Large Language Model DevOps - a package to help deploy LLMs to the Cloud.

Project description

Introduction

This is the Sunholo Python project, a comprehensive toolkit for working with language models and vector stores on Google Cloud Platform. It provides a wide range of functionalities and utilities to facilitate the development and deployment of language model applications.

This is the sunholo-py project. It provides a collection of useful tools and functionalities for working with language models, databases, and various bots.

sunholo-py

(draft release https://pypi.org/project/sunholo/ )

Table of Contents

pip install sunholo

A python library to enable LLMOps within cloud environments

sunholo provides utilities to help manage LLM operations on Google Cloud Platform at first, but it is hoped that making it open source will help it support other clouds in the future. A lot of the functionality is not Google Cloud Platform specific, so still may be helpful.

It is derived from the Edmonbrain project, the original blog post you can read here: https://code.markedmondson.me/running-llms-on-gcp/ and owes a lot to Langchain ( https://github.com/langchain-ai/langchain )

The package includes:

  • agents/ - functions for working with agents, including easy flask apps, parsing chat history and dispatching requests to different agent endpoints
  • archive/ - functions to record all Q&A activity to BigQuery via PubSub
  • bots/ - functions for special cases regarding frontend bots such as GChat, Web Apps, Discord and Slack
  • chunker/ - functions to slice up documents for sending into vector stores
  • components/ - functions to help configure which LLM, prompt, vectorstore or document retriever you will use based on a yaml config file
  • database/ - database setup functions and SQL to run on those sources such as Supabase
  • embedder/ - functions to send chunks into embedding vector stores
  • pubsub/ - use of PubSub for a message queue between components
  • qna/ - utilities for running agents such as retry strats and parsing of output/input
  • streaming/ - creation of streaming responses from LLM bots
  • summarise/ - creation of summaries of large documents
  • utils/ - reading configuration files, Google Cloud Platform metadata

Configuration

The library uses the config specifications that some examples are given in the config/ folder.

When using the functions, make sure to have the config/ folder in the root of where your application is running (usually $HOME/config)

   Copyright [2024] [Holosun ApS]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

sunholo-0.32.10.tar.gz (63.5 kB view details)

Uploaded Source

Built Distribution

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

sunholo-0.32.10-py3-none-any.whl (92.0 kB view details)

Uploaded Python 3

File details

Details for the file sunholo-0.32.10.tar.gz.

File metadata

  • Download URL: sunholo-0.32.10.tar.gz
  • Upload date:
  • Size: 63.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for sunholo-0.32.10.tar.gz
Algorithm Hash digest
SHA256 bfeb55a6972181a7e62cfdf9cf6b605c16f1db49bbfb28e946d55af9a2cdc0cb
MD5 def3b1abc7ed94aef9ea5ba928e8c4a9
BLAKE2b-256 1c4e4511ab1735c764ad1f3e2c2e933a06943df79cf20ece1b0313abe656d883

See more details on using hashes here.

File details

Details for the file sunholo-0.32.10-py3-none-any.whl.

File metadata

  • Download URL: sunholo-0.32.10-py3-none-any.whl
  • Upload date:
  • Size: 92.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for sunholo-0.32.10-py3-none-any.whl
Algorithm Hash digest
SHA256 71624acac4404dc8d44797c5fa563789e39199f57bc5d0ba1f3307b1270a1084
MD5 a3339c79fad9f4797b952fb6ff21ca0b
BLAKE2b-256 c45134414198ea020a45927ad4901358555528b2f14179a1f4d05a5f267785a5

See more details on using hashes here.

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