public static class RerankTextDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RerankTextDetails |
build() |
RerankTextDetails.Builder |
compartmentId(String compartmentId)
The OCID of the compartment to call into the Generative AI service LLMs.
|
RerankTextDetails.Builder |
copy(RerankTextDetails model) |
RerankTextDetails.Builder |
documents(List<String> documents)
A list of document strings to rerank based on the query asked.
|
RerankTextDetails.Builder |
input(String input)
Input query for search in the documents.
|
RerankTextDetails.Builder |
isEcho(Boolean isEcho)
Whether or not to return the documents in the response.
|
RerankTextDetails.Builder |
maxChunksPerDocument(Integer maxChunksPerDocument)
The maximum number of chunks to produce internally from a document.
|
RerankTextDetails.Builder |
servingMode(ServingMode servingMode) |
RerankTextDetails.Builder |
topN(Integer topN)
The number of most relevant documents or indices to return.
|
public RerankTextDetails.Builder input(String input)
Input query for search in the documents.
input
- the value to setpublic RerankTextDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment to call into the Generative AI service LLMs.
compartmentId
- the value to setpublic RerankTextDetails.Builder servingMode(ServingMode servingMode)
public RerankTextDetails.Builder documents(List<String> documents)
A list of document strings to rerank based on the query asked.
documents
- the value to setpublic RerankTextDetails.Builder topN(Integer topN)
The number of most relevant documents or indices to return. Defaults to the length of the documents.
topN
- the value to setpublic RerankTextDetails.Builder isEcho(Boolean isEcho)
Whether or not to return the documents in the response.
isEcho
- the value to setpublic RerankTextDetails.Builder maxChunksPerDocument(Integer maxChunksPerDocument)
The maximum number of chunks to produce internally from a document.
maxChunksPerDocument
- the value to setpublic RerankTextDetails build()
public RerankTextDetails.Builder copy(RerankTextDetails model)
Copyright © 2016–2025. All rights reserved.