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_generate, Markdown

response = quick_generate("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.3.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.3-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file llm_codegen_research-1.3.tar.gz.

File metadata

  • Download URL: llm_codegen_research-1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 9984fb722ef1786dfc9ab7976d829ee68c844032bbaa751b8ca9269d05499549
MD5 1f3ff89b9c14734fd20a2b6dfe882d20
BLAKE2b-256 cd7ba8387ff6d5287ee81b0c0694d4c478a867ca08caa00ad177fc00896c7b1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llm_codegen_research-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 93051d50a4d4c2efbc62c84ce39599870a99a10ccb36e26a076e16ed353679c2
MD5 6d155e822c9be0ba459de0cd725e2bac
BLAKE2b-256 9220a4a49b35c725fb302bd3a9b3585628a430ad008063fecf4857444389154a

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