public class QueryResult extends com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
Constructor and Description |
---|
QueryResult() |
Modifier and Type | Method and Description |
---|---|
String |
getDocumentId()
Gets the documentId.
|
List<QueryResultPassage> |
getDocumentPassages()
Gets the documentPassages.
|
Map<String,Object> |
getMetadata()
Gets the metadata.
|
QueryResultMetadata |
getResultMetadata()
Gets the resultMetadata.
|
public String getDocumentId()
The unique identifier of the document.
public Map<String,Object> getMetadata()
Metadata of the document.
public QueryResultMetadata getResultMetadata()
Metadata of a query result.
public List<QueryResultPassage> getDocumentPassages()
Passages from the document that best matches the query. Returned if **passages.per_document** is `true`.
Copyright © 2024 IBM Cloud. All rights reserved.