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.13.tar.gz (5.7 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.13-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiszrhk-0.1.13.tar.gz
  • Upload date:
  • Size: 5.7 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.13.tar.gz
Algorithm Hash digest
SHA256 e4b64188a0376d9dd10ed12b357cb32998b8c361b579ad48550c24905269bb47
MD5 2794030c5a09fc90a2cac1cddbe9f055
BLAKE2b-256 1a1abed34636b38c549ca99273675123468faacc3b748348da1f579464999827

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiszrhk-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ed6485b21cd846c1c2096e0cff1818cdec5802edda6651d2eb8cd8b4481d3c0f
MD5 597d1474565f28073b0117bc959bbd4e
BLAKE2b-256 de56a7ecd92089c83e6b41c4466061b0d244412c256a0c51607a021a7bcb5297

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