Enum LanguageModelQueryRouter.FallbackStrategy
-
- All Implemented Interfaces:
public enum LanguageModelQueryRouter.FallbackStrategy
Strategy applied if the call to the LLM fails of if LLM does not return a valid response. It could be because it was formatted improperly, or it is unclear where to route.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DO_NOT_ROUTE
In this case, the Query will not be routed to any ContentRetriever, thus skipping the RAG flow. No content will be appended to the original UserMessage.
ROUTE_TO_ALL
In this case, the Query will be routed to all ContentRetrievers.
FAIL
In this case, an original exception will be re-thrown, and the RAG flow will fail.
-
Method Summary
Modifier and Type Method Description static Array<LanguageModelQueryRouter.FallbackStrategy>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static LanguageModelQueryRouter.FallbackStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name. -
-
Method Detail
-
values
static Array<LanguageModelQueryRouter.FallbackStrategy> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static LanguageModelQueryRouter.FallbackStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-