-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add feature to create a replanning chain
- Loading branch information
Showing
6 changed files
with
170 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
from langchain_core.prompts import PromptTemplate | ||
|
||
replanning_template = PromptTemplate.from_template( | ||
""" | ||
# Instructions | ||
--- | ||
Create a detailed and specific development plan from project creation to source code implementation in order to build a correctly working application. | ||
# Original plan was this: | ||
--- | ||
{original_plan} | ||
# You have currently done the follow tasks: | ||
--- | ||
{completed_plan} | ||
# Current implementation | ||
--- | ||
{implementation} | ||
# Constraints | ||
--- | ||
- The application specifications must be carefully understood and accurately reflect the specifications. | ||
- The operation check itself is performed in a separate step and is not included in the plan. | ||
# Requirements | ||
--- | ||
## Application Specifications to be met | ||
```specifications.md | ||
{specifications} | ||
``` | ||
## Technology stack to be used | ||
```technologies.md | ||
{technologies} | ||
``` | ||
""" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters