public class QueryResponsePassage
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Method and Description |
---|---|
List<ResultPassageAnswer> |
getAnswers()
Gets the answers.
|
String |
getCollectionId()
Gets the collectionId.
|
String |
getDocumentId()
Gets the documentId.
|
Long |
getEndOffset()
Gets the endOffset.
|
String |
getField()
Gets the field.
|
Double |
getPassageScore()
Gets the passageScore.
|
String |
getPassageText()
Gets the passageText.
|
Long |
getStartOffset()
Gets the startOffset.
|
public String getPassageText()
The content of the extracted passage.
public Double getPassageScore()
The confidence score of the passage's analysis. A higher score indicates greater confidence. The score is used to rank the passages from all documents and is returned only if **passages.per_document** is `false`.
public String getDocumentId()
The unique identifier of the ingested document.
public String getCollectionId()
The unique identifier of the collection.
public Long getStartOffset()
The position of the first character of the extracted passage in the originating field.
public Long getEndOffset()
The position after the last character of the extracted passage in the originating field.
public String getField()
The label of the field from which the passage has been extracted.
public List<ResultPassageAnswer> getAnswers()
An array of extracted answers to the specified query. Returned for natural language queries when **passages.per_document** is `false`.
Copyright © 2024 IBM Cloud. All rights reserved.