-
Notifications
You must be signed in to change notification settings - Fork 472
docs: fix output rail doc #1159
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
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much for the contribution and corrections! If you don't have time for the requested changes, just let me know and I can add them to this PR and bring them in with your changes.
@@ -185,9 +185,11 @@ You can enable streaming to provide asynchronous responses and reduce the time t | |||
streaming: | |||
chunk_size: 200 | |||
context_size: 50 | |||
enabled: True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind making this the first field underneath streaming:
?
|
||
streaming: True | ||
``` | ||
Note that, the `enabled: True` filed is needed to enable streaming output rails while `streaming: True` is needed to enable streaming generation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove "Note that," and start with "The enabled...
." Please also add a line above for ease of review by future maintainers. (nit: typo for field.)
@Pouyanpi, is the description for the top-level streaming
field accurate? (I wish that I knew better myself.)
@@ -689,6 +689,7 @@ rails: | |||
chunk_size: 200 | |||
context_size: 50 | |||
stream_first: True | |||
enabled: True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As with the previous comment, do you mind making this the first field beneath "streaming:"?
@@ -742,6 +743,11 @@ The following table describes the subfields for the `streaming` field: | |||
By default, the toolkit streams the chunks as soon as possible and before applying output rails to them. | |||
|
|||
- `True` | |||
|
|||
* - streaming.enabled | |||
- When set to True enable the execution of the output rails in streaming mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind putting this row in alphabetical order?
Thanks for following the "When set..." pattern. Do you mind enclosing True in backticks (True
) and following with a comma? Maybe also revise to "When set to True
, the toolkit executes output rails in streaming mode."
Documentation preview |
Description
Fix some issues on output streaming rails documentation.
Specifically the
streaming.enabled
field was missingRelated Issue(s)
I haven't opened a proper issue for that
Checklist