Skip to content

Commit 8997463

Browse files
committed
Update README.md
1 parent 4eddfc1 commit 8997463

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ The template format differs in different tools.
5454

5555
## Strategies
5656

57+
- Fill-in-the-Middle: It uses special tokens to guide the models to generate suggestions. The models need to support FIM to use it (codellama:xb-code, startcoder, etc.). You need to setup a prompt format to allow it to work properly. The default prompt format is for codellama.
58+
- Fill-in-the-Middle with System Prompt: The previous one doesn't have a system prompt telling it what to do. You can try to use it in models that don't support FIM.
59+
- Anthropic Optimized: This strategy is optimized for Anthropic chat models. You can try it on other chat models, too.
5760
- Default: This strategy meticulously explains the context to the model, prompting it to generate a suggestion.
5861
- Naive: This strategy rearranges the code in a naive way to trick the model into believing it's appending code at the end of a file.
5962
- Continue: This strategy employs the "Please Continue" technique to persuade the model that it has started a suggestion and must continue to complete it. (Only effective with the chat completion API).
60-
- Fill-in-the-Middle: It uses special tokens to guide the models to generate suggestions. The models need to support FIM to use it (codellama:xb-code, startcoder, etc.). You need to setup a prompt format to allow it to work properly. The default prompt format is for codellama.
61-
- Fill-in-the-Middle with System Prompt: The previous one doesn't have a system prompt telling it what to do. You can try to use it in models that don't support FIM.
6263

6364
## Contribution
6465

0 commit comments

Comments
 (0)