Skip to content

Commit 990ba1b

Browse files
committed
Remove confidenceScores
1 parent b1badea commit 990ba1b

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

common/api-review/ai.api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ export interface GroundingMetadata {
525525

526526
// @public
527527
export interface GroundingSupport {
528-
confidenceScores?: number[];
529528
groundingChunkIndices?: number[];
530529
segment?: Segment;
531530
}

docs-devsite/ai.groundingsupport.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,9 @@ export interface GroundingSupport
2222

2323
| Property | Type | Description |
2424
| --- | --- | --- |
25-
| [confidenceScores](./ai.groundingsupport.md#groundingsupportconfidencescores) | number\[\] | A list of confidence scores, corresponding to each index in <code>groundingChunkIndices</code>. Each score indicates the model's confidence that the correspondingly indexed grounding chunk supports the claim in the response segment. Scores range from 0.0 to 1.0, where 1.0 is the highest confidence. This list will have the same number of elements as <code>groundingChunkIndices</code>. |
2625
| [groundingChunkIndices](./ai.groundingsupport.md#groundingsupportgroundingchunkindices) | number\[\] | A list of indices that refer to specific [GroundingChunk](./ai.groundingchunk.md#groundingchunk_interface) objects within the [GroundingMetadata.groundingChunks](./ai.groundingmetadata.md#groundingmetadatagroundingchunks) array. These referenced chunks are the sources that support the claim made in the associated <code>segment</code> of the response. For example, an array <code>[1, 3, 4]</code> means that <code>groundingChunks[1]</code>, <code>groundingChunks[3]</code>, and <code>groundingChunks[4]</code> are the retrieved content supporting this part of the response. |
2726
| [segment](./ai.groundingsupport.md#groundingsupportsegment) | [Segment](./ai.segment.md#segment_interface) | Specifies the segment of the model's response content that this grounding support pertains to. |
2827

29-
## GroundingSupport.confidenceScores
30-
31-
A list of confidence scores, corresponding to each index in `groundingChunkIndices`<!-- -->. Each score indicates the model's confidence that the correspondingly indexed grounding chunk supports the claim in the response segment. Scores range from 0.0 to 1.0, where 1.0 is the highest confidence. This list will have the same number of elements as `groundingChunkIndices`<!-- -->.
32-
33-
<b>Signature:</b>
34-
35-
```typescript
36-
confidenceScores?: number[];
37-
```
38-
3928
## GroundingSupport.groundingChunkIndices
4029

4130
A list of indices that refer to specific [GroundingChunk](./ai.groundingchunk.md#groundingchunk_interface) objects within the [GroundingMetadata.groundingChunks](./ai.groundingmetadata.md#groundingmetadatagroundingchunks) array. These referenced chunks are the sources that support the claim made in the associated `segment` of the response. For example, an array `[1, 3, 4]` means that `groundingChunks[1]`<!-- -->, `groundingChunks[3]`<!-- -->, and `groundingChunks[4]` are the retrieved content supporting this part of the response.

packages/ai/src/types/responses.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,6 @@ export interface GroundingSupport {
290290
* and `groundingChunks[4]` are the retrieved content supporting this part of the response.
291291
*/
292292
groundingChunkIndices?: number[];
293-
/**
294-
* A list of confidence scores, corresponding to each index in `groundingChunkIndices`.
295-
* Each score indicates the model's confidence that the correspondingly indexed grounding chunk
296-
* supports the claim in the response segment. Scores range from 0.0 to 1.0, where 1.0 is the highest confidence.
297-
* This list will have the same number of elements as `groundingChunkIndices`.
298-
*/
299-
confidenceScores?: number[];
300293
}
301294

302295
/**

0 commit comments

Comments
 (0)