Skip to content

Fix/colang 2/flow continuation prompt #775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nemoguardrails/llm/prompts/llama3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ prompts:
messages:
- type: system
content: "Directly response with expected answer. Don't provide any pre- or post-explanations."
- type: user

- type: system
content: |-
{{ flow_nld }}
4 changes: 2 additions & 2 deletions nemoguardrails/llm/prompts/openai-chatgpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ prompts:
content: "This is the current conversation between the user and the bot:"
- "{{ history | colang | to_messages_v2}}"

- type: assistant
- type: system
content: |
Follow these instruction `{{ instructions }}` to generate a value that is assigned to:
${{ var_name }} =
Expand Down Expand Up @@ -303,6 +303,6 @@ prompts:
- openai/gpt-3.5-turbo
- openai/gpt-4
messages:
- type: user
- type: system
content: |-
{{ flow_nld }}
2 changes: 1 addition & 1 deletion tests/v2_x/test_state_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def test_serialization():
avg_time += took
avg_time /= number_of_runs

assert avg_time < 0.1
assert avg_time < 0.2

assert isinstance(s, str)

Expand Down