Package ai.vespa.llm
Class InferenceParameters
java.lang.Object
ai.vespa.llm.InferenceParameters
Parameters for inference to language models. Parameters are typically
supplied from searchers or processors and comes from query strings,
headers, or other sources. Which parameters are available depends on
the language model used.
author lesters
author glebashnik
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInferenceParameters(String apiKey, Function<String, String> options) InferenceParameters(Function<String, String> options) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidsetEndpoint(String endpoint) withDefaultOptions(Function<String, String> defaultOptions)
-
Field Details
-
OPTION_MODEL
- See Also:
-
OPTION_TEMPERATURE
- See Also:
-
OPTION_MAX_TOKENS
- See Also:
-
OPTION_TOP_K
- See Also:
-
OPTION_TOP_P
- See Also:
-
OPTION_N_PREDICT
- See Also:
-
OPTION_REPEAT_PENALTY
- See Also:
-
OPTION_FREQUENCY_PENALTY
- See Also:
-
OPTION_PRESENCE_PENALTY
- See Also:
-
OPTION_SEED
- See Also:
-
OPTION_JSON_SCHEMA
- See Also:
-
-
Constructor Details
-
InferenceParameters
-
InferenceParameters
-
InferenceParameters
-
-
Method Details
-
setApiKey
-
getApiKey
-
setEndpoint
-
getEndpoint
-
get
-
getDouble
-
getInt
-
getLong
-
ifPresent
-
withDefaultOptions
-