Skip to content

Commit d4f9261

Browse files
[ML] Change cohere rerank response format (#2499)
* renamed id to index * Change rerank RankedDocument response format
1 parent 148fc73 commit d4f9261

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/inference/_types/Results.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { float, byte } from '@_types/Numeric'
20+
import { float, byte, integer } from '@_types/Numeric'
2121
import { Dictionary } from '@spec_utils/Dictionary'
2222

2323
/**
@@ -70,8 +70,8 @@ export class CompletionResult {
7070
* text: Optional, the text of the document, if requested
7171
*/
7272
export class RankedDocument {
73-
index: string
74-
score: string
73+
index: integer
74+
score: float
7575
text?: string
7676
}
7777
/**

0 commit comments

Comments
 (0)