Metadata-Version: 2.4
Name: aiszrhk
Version: 0.1.11
Summary: A lightweight and customizable API wrapper designed to assist data analysts
Author-email: "Zhairui Shen(Laurent)" <century8613@gmail.com>
Maintainer-email: "Zhairui Shen(Laurent)" <admin@szr.hk>
License: MIT
Project-URL: Homepage, https://szr.hk
Project-URL: MyHomepage, https://szr.hk/me
Project-URL: Repository, https://github.com/LaurentShen
Project-URL: DOWNLOAD, https://pypi.org/project/aiszrhk/
Keywords: LLM,AI,ChatGPT,API,Data analysts
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: pandas
Requires-Dist: tiktoken
Requires-Dist: openai
Requires-Dist: collections
Requires-Dist: textwrap
Requires-Dist: InquirerPy
Requires-Dist: tqdm
Dynamic: license-file

# 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
```python
from aiszrhk.llm4data import utils
```

### 2. Extra & Run code 
```python
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
```python
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.
