Skip to main content

Utilities for use when research code-generation by LLMs.

Project description

llm-codegen-research

lint code workflow test code workflow release workflow

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_codegen_research-1.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_codegen_research-1.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

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

Hashes for llm_codegen_research-1.2.tar.gz
Algorithm Hash digest
SHA256 ca9a428701f83d37574659bb991a2bcebcfb9d34c3668df51939122029404a59
MD5 aa9e336a076de231335572d276f9b9cd
BLAKE2b-256 d4c6d86ae024ca12cda57e3a50bb5ffc7e8767e855802952fd455f2774d916cf

See more details on using hashes here.

File details

Details for the file llm_codegen_research-1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_codegen_research-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5cd921908a0c73770b239ce1c5fb3ceb414de1c617b898ee45e53a6ac730243b
MD5 05ad7f836e41f0082bdc05b018d3979f
BLAKE2b-256 667291c4de7e9e30dd1522a755b25982395f8a33f36e2a4d04117edf4651f679

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