-
Notifications
You must be signed in to change notification settings - Fork 891
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update samples to use new prompt separator
- Loading branch information
Yuhang Liu
committed
Oct 19, 2023
1 parent
2ef0182
commit 7ce0580
Showing
13 changed files
with
34 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
system: | ||
# system: | ||
You are a helpful assistant. | ||
|
||
{% for item in chat_history %} | ||
user: | ||
# user: | ||
{{item.inputs.question}} | ||
assistant: | ||
# assistant: | ||
{{item.outputs.answer}} | ||
{% endfor %} | ||
|
||
user: | ||
# user: | ||
{{question}} |
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
4 changes: 2 additions & 2 deletions
4
examples/flows/chat/chat-with-wikipedia/extract_query_from_question.jinja2
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
system: | ||
# system: | ||
You are a assistant which can write code. Response should only contain code. | ||
|
||
user: | ||
# user: | ||
Write a simple {{text}} program that displays the greeting message when executed. |
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
4 changes: 2 additions & 2 deletions
4
examples/flows/standard/named-entity-recognition/NER_LLM.jinja2
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,10 +1,10 @@ | ||
system: | ||
# system: | ||
Your task is to find entities of certain type from the given text content. | ||
If there're multiple entities, please return them all with comma separated, e.g. "entity1, entity2, entity3". | ||
You should only return the entity list, nothing else. | ||
If there's no such entity, please return "None". | ||
|
||
user: | ||
# user: | ||
Entity type: {{entity_type}} | ||
Text content: {{text}} | ||
Entities: |
4 changes: 2 additions & 2 deletions
4
examples/flows/standard/web-classification/classify_with_llm.jinja2
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
4 changes: 2 additions & 2 deletions
4
examples/flows/standard/web-classification/summarize_text_content.jinja2
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,7 +1,7 @@ | ||
system: | ||
# system: | ||
Please summarize the following text in one paragraph. 100 words. | ||
Do not add any information that is not in the text. | ||
|
||
user: | ||
# user: | ||
Text: {{text}} | ||
Summary: |
4 changes: 2 additions & 2 deletions
4
examples/flows/standard/web-classification/summarize_text_content__variant_1.jinja2
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,7 +1,7 @@ | ||
system: | ||
# system: | ||
Please summarize some keywords of this paragraph and have some details of each keywords. | ||
Do not add any information that is not in the text. | ||
|
||
user: | ||
# user: | ||
Text: {{text}} | ||
Summary: |