public class QueryResultMetadata
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static interface |
QueryResultMetadata.DocumentRetrievalSource
The document retrieval source that produced this search result.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
collectionId |
protected java.lang.Double |
confidence |
protected java.lang.String |
documentRetrievalSource |
Constructor and Description |
---|
QueryResultMetadata() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCollectionId()
Gets the collectionId.
|
java.lang.Double |
getConfidence()
Gets the confidence.
|
java.lang.String |
getDocumentRetrievalSource()
Gets the documentRetrievalSource.
|
@SerializedName(value="document_retrieval_source") protected java.lang.String documentRetrievalSource
@SerializedName(value="collection_id") protected java.lang.String collectionId
protected java.lang.Double confidence
public java.lang.String getDocumentRetrievalSource()
The document retrieval source that produced this search result.
public java.lang.String getCollectionId()
The collection id associated with this training data set.
public java.lang.Double getConfidence()
The confidence score for the given result. Calculated based on how relevant the result is estimated to be. confidence can range from `0.0` to `1.0`. The higher the number, the more relevant the document. The `confidence` value for a result was calculated using the model specified in the `document_retrieval_strategy` field of the result set. This field is only returned if the **natural_language_query** parameter is specified in the query.