Skip to main content

A lightweight and customizable API wrapper designed to assist data analysts

Project description

aiszrhk

aiszrhk.llm4data is a lightweight and customizable API wrapper designed to assist data analysts by leveraging the power of large language models (LLMs).

Features

  • Modular utility functions for LLM interaction
  • Customizable for data analysis workflows
  • Designed with namespace package structure

Usage

Import

from aiszrhk.llm4data import utils

Extra & Run code

utils.extract_and_optionally_run_code(response: str, level: int = 0)
  • To simplify the process of extra generated code during the process, we've built in with code automate detect function. Once llm output with code block inside, the terminal will automatically display extracted code and ask user if to execute or not.

Placeholder inserter

utils.extract_options_and_insert_into_placeholders(response: str, placeholders: dict, input_file: str, level: int = 0)
  • We also provide a placeholder inserter. For step(s) you want to insert output options into reserved placeholder field, you may fill the corresponded "system_prompt" field with following sentence: "You're a multiple choice generator. You must provide the output with format:'[A].... [B]...' and continue with C, D, and etc. only." Thus, you will be able to trigger the multiple choice detetor function.

Project details


Download files

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

Source Distribution

aiszrhk-0.1.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

aiszrhk-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file aiszrhk-0.1.1.tar.gz.

File metadata

  • Download URL: aiszrhk-0.1.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for aiszrhk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e501e591bfc92840cb846d2331de622aa3e3447a1b9048a97f89bf463c03bd35
MD5 85aeff32b1f52765b2e3508d268daa62
BLAKE2b-256 85fdd12ad06d894dacac73ddbdcf2a0fd16db729847df571c1a5443ac92a25c6

See more details on using hashes here.

File details

Details for the file aiszrhk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: aiszrhk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for aiszrhk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b32cc32b4585c61630340dfe01481daac70ed0c79b7daf3f81f31498fde0a47
MD5 08d3694ca257de2c4bd7236edcdf6ebc
BLAKE2b-256 85444c0a7e02d2d6a874a9ee4f8a98c927562a3281867feded9b7ae3d8dba272

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