-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
4 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
20 changes: 20 additions & 0 deletions
20
kyo-llm/shared/src/main/scala/kyo/llm/thoughts/reasoning/Repair.scala
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,20 @@ | ||
package kyo.llm.thoughts.reasoning | ||
|
||
import kyo.llm.ais._ | ||
|
||
@desc( | ||
p""" | ||
The Repair thought is used for introspection and correction following errors in the LLM's reasoning or output. | ||
- Focuses on analyzing recent actions to identify the causes of failures. | ||
- Aims to develop strategies to prevent similar errors in future reasoning processes. | ||
- Encourages the LLM to critically evaluate its performance and apply corrective measures. | ||
- This thought is crucial for the LLM's learning process, allowing it to adapt and improve over time. | ||
- Example: If an error is detected in JSON generation, Repair directs the LLM to pinpoint the error's source and | ||
modify its approach to ensure compliance with JSON standards. | ||
""" | ||
) | ||
case class Repair( | ||
`Analyze recent actions to identify failure causes`: String, | ||
`Develop strategies to avoid similar errors`: String, | ||
`Elaborate on the corrective measures to be applied`: String | ||
) |