mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-18 07:40:05 +02:00
25 lines
666 B
Python
25 lines
666 B
Python
from enum import Enum
|
|
|
|
AGENT_LLM_TIMEOUT_MESSAGE = "The agent timed out. Please try again."
|
|
AGENT_LLM_ERROR_MESSAGE = "The agent encountered an error. Please try again."
|
|
AGENT_LLM_RATELIMIT_MESSAGE = (
|
|
"The agent encountered a rate limit error. Please try again."
|
|
)
|
|
LLM_ANSWER_ERROR_MESSAGE = "The question was not answered due to an LLM error."
|
|
|
|
AGENT_POSITIVE_VALUE_STR = "yes"
|
|
AGENT_NEGATIVE_VALUE_STR = "no"
|
|
|
|
AGENT_ANSWER_SEPARATOR = "Answer:"
|
|
|
|
|
|
EMBEDDING_KEY = "embedding"
|
|
IS_KEYWORD_KEY = "is_keyword"
|
|
KEYWORDS_KEY = "keywords"
|
|
|
|
|
|
class AgentLLMErrorType(str, Enum):
|
|
TIMEOUT = "timeout"
|
|
RATE_LIMIT = "rate_limit"
|
|
GENERAL_ERROR = "general_error"
|