Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
fix: Changed non-string constants to stringified values.
Browse files Browse the repository at this point in the history
  • Loading branch information
anirbanbasu committed May 7, 2024
1 parent aff82da commit b94bbd2
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,33 +134,33 @@
DEFAULT_SETTING_COHERE_MODEL = "command-r"
DEFAULT_SETTING_OPENAI_MODEL = "gpt-3.5-turbo-0125"

DEFAULT_SETTING_LLM_REQUEST_TIMEOUT = 120
DEFAULT_SETTING_LLM_TEMPERATURE = 0.0
DEFAULT_SETTING_LLM_REQUEST_TIMEOUT = "120"
DEFAULT_SETTING_LLM_TEMPERATURE = "0.0"
DEFAULT_SETTING_LLM_SYSTEM_MESSAGE = "You are an intelligent assistant. You provide concise and informative responses to questions from the user using only the information given to you as context. If you are unsure about an answer or if the user question cannot be answered using information in the context then say that you do not know. Cite the actual text from the context as a reference with your answer."
DEFAULT_SETTING_LLM_CHUNK_SIZE = 1024
DEFAULT_SETTING_LLM_CHUNK_OVERLAP = 64
DEFAULT_SETTING_LLM_CHUNK_SIZE = "1024"
DEFAULT_SETTING_LLM_CHUNK_OVERLAP = "64"

DEFAULT_SETTING_INDEX_MEMORY_TOKEN_LIMIT = 4096
DEFAULT_SETTING_INDEX_MAX_TRIPLETS_PER_CHUNK = 8
DEFAULT_SETTING_INDEX_INCLUDE_EMBEDDINGS = True
DEFAULT_SETTING_INDEX_MEMORY_TOKEN_LIMIT = "4096"
DEFAULT_SETTING_INDEX_MAX_TRIPLETS_PER_CHUNK = "8"
DEFAULT_SETTING_INDEX_INCLUDE_EMBEDDINGS = "True"
DEFAULT_SETTING_INDEX_CHAT_MODE = "context"

DEFAULT_SETTING_NEO4J_DISABLE = False
DEFAULT_SETTING_NEO4J_DISABLE = "False"
DEFAULT_SETTING_NEO4J_URL = "bolt://localhost:7687"
DEFAULT_SETTING_NEO4J_USERNAME = "neo4j"
DEFAULT_SETTING_NEO4J_DB_NAME = "neo4j"

DEFAULT_SETTING_REDIS_DISABLE = False
DEFAULT_SETTING_REDIS_DISABLE = "False"
DEFAULT_SETTING_REDIS_URL = "redis://localhost:6379"
DEFAULT_SETTING_REDIS_NAMESPACE = "tldrlc"

DEFAULT_SETTING_KG_VIS_HEIGHT = 800
DEFAULT_SETTING_KG_VIS_MAX_NODES = 100
DEFAULT_SETTING_KG_VIS_MAX_DEPTH = 3
DEFAULT_SETTING_KG_VIS_HEIGHT = "800"
DEFAULT_SETTING_KG_VIS_MAX_NODES = "100"
DEFAULT_SETTING_KG_VIS_MAX_DEPTH = "3"
DEFAULT_SETTING_KG_VIS_LAYOUT = "spring"
DEFAULT_SETTING_KG_VIS_PHYSICS_ENABLED = True
DEFAULT_SETTING_KG_VIS_PHYSICS_ENABLED = "True"

DEFAULT_SETTING_EVAL_USE_LANGFUSE = False
DEFAULT_SETTING_EVAL_USE_LANGFUSE = "False"

DEFAULT_SETTING_LOG_LEVEL = "30"

Expand All @@ -177,8 +177,8 @@
DEFAULT_DATA_SOURCE_WIKIPEDIA_LANGUAGE_PREFIX = "en"

# UI related parameters
UI_STATUS_CONTAINER_HEIGHT = 300
UI_CHAT_CONTAINER_HEIGHT = 400
UI_STATUS_CONTAINER_HEIGHT = "300"
UI_CHAT_CONTAINER_HEIGHT = "400"

UI_SOLARA_NOTICE_REMOVE = """
.v-application--wrap > div:nth-child(2) > div:nth-child(2){
Expand Down

0 comments on commit b94bbd2

Please sign in to comment.