Skip to content

Commit

Permalink
Merge pull request #2 from nju-websoft/merge-github
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
huanhuan6666 authored Sep 9, 2024
2 parents a642ea7 + b26fa45 commit ee8f0ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# PairCoder
A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinement

## Overview
In this paper, we draw on pair programming practices to propose **PairCoder**, a novel LLM-based framework for code generation. PairCoder incorporates two collaborative LLM agents, namely a *Navigator* agent for high-level planning and a *Driver* agent for specific implementation.

The *Navigator* is responsible for proposing promising solution plans, selecting the current optimal plan, and directing the next iteration round based on execution feedback.
The *Driver* follows the guidance of *Navigator* to undertake initial code generation, code testing, and refinement. This interleaved and iterative workflow involves multi-plan exploration and feedback-based refinement, which mimics the collaboration of pair programmers.
![model](assets/method_flow.gif)
## Prepare Environment

PairCoder is developed on Ubuntu 16.04 LTS.
Expand All @@ -13,9 +19,9 @@ pip install -r requirements.txt
```

Please set your API KEY in `settings/configuration.toml`.
There are also other configurable options to control the behavior of our PairCoder.
This file also contains numerous other configurable options that allow you to fine-tune and precisely control the behavior of PairCoder.

## Code Generation
## Quick Start

Use the following command to perform code generation:

Expand Down
Binary file added assets/method_flow.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ee8f0ee

Please sign in to comment.