Natural language framework for program synthesis using code language models
Top 69.9% on sourcepulse
Parsel is a natural language framework designed for generating complex programs across various target languages using large language models. It is aimed at researchers and developers working on algorithmic tasks like code synthesis, robotic planning, and theorem proving, enabling the creation of programs that satisfy unit tests or other constraints.
How It Works
Parsel employs a compositional approach, considering multiple potential implementations for each function. It then searches through these sets of implementations to discover programs that successfully pass specified unit tests or program constraints. This method allows for the exploration of diverse solutions and the synthesis of programs even when starting from natural language descriptions or incomplete code.
Quick Start & Requirements
git clone https://github.com/ezelikman/parsel.git
and pip install openai
.keys/codex_key.txt
(format: organization_id:api_key
)..ss
files, e.g., python parsel.py programs/problem_solving.ss
.consts/__init__.py
and ensure Lean is installed.Highlighted Details
Maintenance & Community
The project is associated with authors from various institutions, with a preprint available on arXiv. No specific community channels like Discord or Slack are mentioned in the README.
Licensing & Compatibility
The project's code is available under a license that permits use, as indicated by the arXiv.org license for the preprint. Specific licensing for the code itself is not explicitly detailed beyond the general context of open-source availability.
Limitations & Caveats
The framework relies heavily on OpenAI models, necessitating an API key and incurring associated costs. The effectiveness of program generation is dependent on the capabilities of the underlying language models and the quality of the provided constraints or tests.
1 year ago
1 day