Class CohereDocumentContentV2.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiinference.model.CohereDocumentContentV2.Builder
-
- Enclosing class:
- CohereDocumentContentV2
public static class CohereDocumentContentV2.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CohereDocumentContentV2build()CohereDocumentContentV2.Buildercopy(CohereDocumentContentV2 model)CohereDocumentContentV2.Builderdocument(Object document)Relevant information that could be used by the model to generate a more accurate reply.
-
-
-
Method Detail
-
document
public CohereDocumentContentV2.Builder document(Object document)
Relevant information that could be used by the model to generate a more accurate reply.The content of each document are generally short (should be under 300 words). Metadata should be used to provide additional information, both the key name and the value will be passed to the model.
- Parameters:
document- the value to set- Returns:
- this builder
-
build
public CohereDocumentContentV2 build()
-
copy
public CohereDocumentContentV2.Builder copy(CohereDocumentContentV2 model)
-
-