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

1. Import

from aiszrhk.llm4data import utils

2. 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.

3. 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.11.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.11-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiszrhk-0.1.11.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.11.tar.gz
Algorithm Hash digest
SHA256 1dfc26537dc7eeac5d1f3e98a12f0665550138a74e4885c157a8b92c367d828b
MD5 c48cd99a18fd8c4c21eb1548f88a1c82
BLAKE2b-256 badc883b8dd12f93dddaf0b2da3aa01ba2f34d7a54dcf693e94c17f599af62a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiszrhk-0.1.11-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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 7533faf4fda31114a643cfa79032c3a8eabda2558f2d8ea77c04faac977f04d3
MD5 735f3bda1ff2f0f8f91ff56fe426070f
BLAKE2b-256 f7704131a172bfe83870ffd8cc642a0ee31a7217535f4bc21c01f2ab895bf7f1

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