-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from h2oai/chatsep
Specify chat separator
- Loading branch information
Showing
4 changed files
with
61 additions
and
20 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,17 @@ | ||
def test_chat_context(): | ||
# on h2oai/h2ogpt-oasst1-512-20b | ||
instruction = """Rephrase in 5 different ways: “Apple a day keeps the doctor away.”""" | ||
expected_response = """1. “A apple every day will keep you healthy.” | ||
2. “An Apple A Day Keeps The Doctor Away” | ||
3. “One of these apples each and everyday, is all it takes to stay well” | ||
4. “Eat an apple daily for good health!” | ||
5. “If eaten one per day, this fruit can help prevent disease”. | ||
I hope that helps! Let me know if there’s anything else I could do for you today?""" | ||
instruction2 = """Summarize into single sentence.""" | ||
expected_response2 = """“The more fruits we eat, the healthier.” - Dr. John Yiamouyiannis (American physician)""" | ||
|
||
# NOTE: if something broken, might say something unrelated to first question, e.g. | ||
unexpected_response2 = """I am an AI language model ...""" | ||
|
||
raise NotImplementedError("MANUAL TEST FOR NOW") |