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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiszrhk-0.1.12.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.12.tar.gz
Algorithm Hash digest
SHA256 2774b050545163bde39151655886c96b1451a6de50e2214e745385e8b0b0c1fd
MD5 216d78fc0da5ad73a364bc666a96a771
BLAKE2b-256 4204731c942d1e25b99fc1d2bea0a6f061ddf8b1ad48cbfc9239b1d04769eae5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiszrhk-0.1.12-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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 0e0f533556ae9c4138d9ed308d8ccce56c8e4e71296949ef46748ea8123645ce
MD5 624d30c6615bae15c8995d8fe90cda08
BLAKE2b-256 ad450a0f1725885ff230fa66b9d5a91fceb1942b7d2f7680e1cdf6a700cc608c

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