Skip to content

Commit eb07601

Browse files
minor fixes
1 parent 2a9a52a commit eb07601

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/ai-gateway/evaluations/add-human-feedback-bindings.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Use the [`patchLog()`](/ai-gateway/integrations/worker-binding-methods/#31-patch
3535

3636
```javascript
3737
await env.AI.gateway("my-gateway").patchLog(myLogId, {
38-
feedback: 1, // both fields are optional; set values that fit your use case
38+
feedback: 1, // all fields are optional; set values that fit your use case
3939
score: 100,
4040
metadata: {
4141
user: "123", // Optional metadata to provide additional context
@@ -45,8 +45,8 @@ await env.AI.gateway("my-gateway").patchLog(myLogId, {
4545

4646
## Feedback parameters explanation
4747

48-
- `feedback`: A boolean-like value (0 or 1) indicating whether the response was satisfactory.
49-
- `score`: An integer representing the quality or usefulness of the response.
48+
- `feedback`: is either `-1` for negative or `1` to positive, `0` is considered not evaluated.
49+
- `score`: A number between 0 and 100.
5050
- `metadata`: An object containing additional contextual information.
5151

5252
### patchLog: Send Feedback

0 commit comments

Comments
 (0)