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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiszrhk-0.1.14.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.14.tar.gz
Algorithm Hash digest
SHA256 11142bb2e01a7c47fae45c93cf0471dfe6892a1029ec52bf556d9f66c02794b8
MD5 ad7f4c75171ec367a62f75cad232f6dc
BLAKE2b-256 232712e4f30a0bd9f825bc793b85dce9c55218750c28e98413031d1d9928cecb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiszrhk-0.1.14-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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 d58a9b5c9886e4c6b380178548c048bb10e497582c91231c998b919d890d73b4
MD5 66a7725b1b515a318fb8230dcc43bbee
BLAKE2b-256 59fa8c05e6e80cf05a3d0b8b3a2679f0b4f26dea03d2e5363af07ea91c5bee56

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