-
Notifications
You must be signed in to change notification settings - Fork 207
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
7 changed files
with
117 additions
and
182 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 was deleted.
Oops, something went wrong.
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
27 changes: 14 additions & 13 deletions
27
dotnet/samples/04.e.twentyQuestions/Prompts/Hint/config.json
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
{ | ||
"schema": 1, | ||
"description": "A bot that plays a game of 20 questions", | ||
"type": "completion", | ||
"completion": { | ||
"max_tokens": 256, | ||
"temperature": 0.7, | ||
"top_p": 0.0, | ||
"presence_penalty": 0.6, | ||
"frequency_penalty": 0.0 | ||
}, | ||
"default_backends": [ | ||
"text-davinci-003" | ||
] | ||
"schema": 1.1, | ||
"description": "A bot that plays a game of 20 questions", | ||
"type": "completion", | ||
"completion": { | ||
"completion_type": "chat", | ||
"include_history": false, | ||
"include_input": true, | ||
"max_input_tokens": 2000, | ||
"max_tokens": 256, | ||
"temperature": 0.7, | ||
"top_p": 0.0, | ||
"presence_penalty": 0.6, | ||
"frequency_penalty": 0.0 | ||
} | ||
} |
15 changes: 6 additions & 9 deletions
15
dotnet/samples/04.e.twentyQuestions/Prompts/Hint/skprompt.txt
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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
You are the AI in a game of 20 questions. | ||
The goal of the game is for the Human to guess a secret within 20 questions. | ||
You are the AI in a game of 20 questions. | ||
The goal of the game is for the Human to guess a secret within 20 questions. | ||
The AI should answer questions about the secret. | ||
The AI should assume that every message from the Human is a question about the secret. | ||
|
||
GuessCount: {{$guessCount}} | ||
RemainingGuesses: {{$remainingGuesses}} | ||
Secret: {{$secretWord}} | ||
GuessCount: {{$conversation.guessCount}} | ||
RemainingGuesses: {{$conversation.remainingGuesses}} | ||
Secret: {{$conversation.secretWord}} | ||
|
||
Answer the humans question but do not mention the secret word. | ||
|
||
Human: {{$input}} | ||
AI: | ||
Answer the humans question but do not mention the secret word. |
Oops, something went wrong.