Utilities for use when research code-generation by LLMs.
Project description
llm-codegen-research
usage
A collection of methods and classes I repeatedly use when conducting research on LLM code-generation. Covers both prompting various LLMs, and analysing the markdown responses.
from llm_cgr import quick_complete, Markdown
response = quick_complete("Write python code to generate the nth fibonacci number.")
markdown = Markdown(text=response)
installation
Install directly from PyPI, using pip:
pip install llm-codegen-research
development
Clone the repository code:
git clone https://github.com/itsluketwist/llm-codegen-research.git
We use uv for project management.
Once cloned, create a virtual environment and install uv and the project:
python -m venv .venv
. .venv/bin/activate
pip install uv
uv sync
Use make commands to lint and test:
make lint
make test
Use uv to add new dependencies into the project and uv.lock:
uv add openai
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_codegen_research-1.2.tar.gz.
File metadata
- Download URL: llm_codegen_research-1.2.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca9a428701f83d37574659bb991a2bcebcfb9d34c3668df51939122029404a59
|
|
| MD5 |
aa9e336a076de231335572d276f9b9cd
|
|
| BLAKE2b-256 |
d4c6d86ae024ca12cda57e3a50bb5ffc7e8767e855802952fd455f2774d916cf
|
File details
Details for the file llm_codegen_research-1.2-py3-none-any.whl.
File metadata
- Download URL: llm_codegen_research-1.2-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cd921908a0c73770b239ce1c5fb3ceb414de1c617b898ee45e53a6ac730243b
|
|
| MD5 |
05ad7f836e41f0082bdc05b018d3979f
|
|
| BLAKE2b-256 |
667291c4de7e9e30dd1522a755b25982395f8a33f36e2a4d04117edf4651f679
|