public class CreateTrainingQueryOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
CreateTrainingQueryOptions.Builder
Builder.
|
Modifier and Type | Method and Description |
---|---|
List<TrainingExample> |
examples()
Gets the examples.
|
String |
filter()
Gets the filter.
|
String |
naturalLanguageQuery()
Gets the naturalLanguageQuery.
|
CreateTrainingQueryOptions.Builder |
newBuilder()
New builder.
|
String |
projectId()
Gets the projectId.
|
public CreateTrainingQueryOptions.Builder newBuilder()
public String projectId()
The ID of the project. This information can be found from the *Integrate and Deploy* page in Discovery.
public String naturalLanguageQuery()
The natural text query that is used as the training query.
public List<TrainingExample> examples()
Array of training examples.
public String filter()
The filter used on the collection before the **natural_language_query** is applied. Only specify a filter if the documents that you consider to be most relevant are not included in the top 100 results when you submit test queries. If you specify a filter during training, apply the same filter to queries that are submitted at runtime for optimal ranking results.
Copyright © 2024 IBM Cloud. All rights reserved.