You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

307 lines
10 KiB

11 months ago
  1. SERVER_PORT=3001
  2. JWT_SECRET="my-random-string-for-seeding" # Please generate random string at least 12 chars long.
  3. SIG_KEY='passphrase' # Please generate random string at least 32 chars long.
  4. SIG_SALT='salt' # Please generate random string at least 32 chars long.
  5. ###########################################
  6. ######## LLM API SElECTION ################
  7. ###########################################
  8. # LLM_PROVIDER='openai'
  9. # OPEN_AI_KEY=
  10. # OPEN_MODEL_PREF='gpt-4o'
  11. # LLM_PROVIDER='gemini'
  12. # GEMINI_API_KEY=
  13. # GEMINI_LLM_MODEL_PREF='gemini-pro'
  14. # LLM_PROVIDER='azure'
  15. # AZURE_OPENAI_ENDPOINT=
  16. # AZURE_OPENAI_KEY=
  17. # OPEN_MODEL_PREF='my-gpt35-deployment' # This is the "deployment" on Azure you want to use. Not the base model.
  18. # EMBEDDING_MODEL_PREF='embedder-model' # This is the "deployment" on Azure you want to use for embeddings. Not the base model. Valid base model is text-embedding-ada-002
  19. # LLM_PROVIDER='anthropic'
  20. # ANTHROPIC_API_KEY=sk-ant-xxxx
  21. # ANTHROPIC_MODEL_PREF='claude-2'
  22. # LLM_PROVIDER='lmstudio'
  23. # LMSTUDIO_BASE_PATH='http://your-server:1234/v1'
  24. # LMSTUDIO_MODEL_PREF='Loaded from Chat UI' # this is a bug in LMStudio 0.2.17
  25. # LMSTUDIO_MODEL_TOKEN_LIMIT=4096
  26. # LLM_PROVIDER='localai'
  27. # LOCAL_AI_BASE_PATH='http://localhost:8080/v1'
  28. # LOCAL_AI_MODEL_PREF='luna-ai-llama2'
  29. # LOCAL_AI_MODEL_TOKEN_LIMIT=4096
  30. # LOCAL_AI_API_KEY="sk-123abc"
  31. # LLM_PROVIDER='ollama'
  32. # OLLAMA_BASE_PATH='http://host.docker.internal:11434'
  33. # OLLAMA_MODEL_PREF='llama2'
  34. # OLLAMA_MODEL_TOKEN_LIMIT=4096
  35. # LLM_PROVIDER='togetherai'
  36. # TOGETHER_AI_API_KEY='my-together-ai-key'
  37. # TOGETHER_AI_MODEL_PREF='mistralai/Mixtral-8x7B-Instruct-v0.1'
  38. # LLM_PROVIDER='fireworksai'
  39. # FIREWORKS_AI_LLM_API_KEY='my-fireworks-ai-key'
  40. # FIREWORKS_AI_LLM_MODEL_PREF='accounts/fireworks/models/llama-v3p1-8b-instruct'
  41. # LLM_PROVIDER='perplexity'
  42. # PERPLEXITY_API_KEY='my-perplexity-key'
  43. # PERPLEXITY_MODEL_PREF='codellama-34b-instruct'
  44. # LLM_PROVIDER='deepseek'
  45. # DEEPSEEK_API_KEY=YOUR_API_KEY
  46. # DEEPSEEK_MODEL_PREF='deepseek-chat'
  47. # LLM_PROVIDER='openrouter'
  48. # OPENROUTER_API_KEY='my-openrouter-key'
  49. # OPENROUTER_MODEL_PREF='openrouter/auto'
  50. # LLM_PROVIDER='mistral'
  51. # MISTRAL_API_KEY='example-mistral-ai-api-key'
  52. # MISTRAL_MODEL_PREF='mistral-tiny'
  53. # LLM_PROVIDER='huggingface'
  54. # HUGGING_FACE_LLM_ENDPOINT=https://uuid-here.us-east-1.aws.endpoints.huggingface.cloud
  55. # HUGGING_FACE_LLM_API_KEY=hf_xxxxxx
  56. # HUGGING_FACE_LLM_TOKEN_LIMIT=8000
  57. # LLM_PROVIDER='groq'
  58. # GROQ_API_KEY=gsk_abcxyz
  59. # GROQ_MODEL_PREF=llama3-8b-8192
  60. # LLM_PROVIDER='koboldcpp'
  61. # KOBOLD_CPP_BASE_PATH='http://127.0.0.1:5000/v1'
  62. # KOBOLD_CPP_MODEL_PREF='koboldcpp/codellama-7b-instruct.Q4_K_S'
  63. # KOBOLD_CPP_MODEL_TOKEN_LIMIT=4096
  64. # LLM_PROVIDER='textgenwebui'
  65. # TEXT_GEN_WEB_UI_BASE_PATH='http://127.0.0.1:5000/v1'
  66. # TEXT_GEN_WEB_UI_TOKEN_LIMIT=4096
  67. # TEXT_GEN_WEB_UI_API_KEY='sk-123abc'
  68. # LLM_PROVIDER='generic-openai'
  69. # GENERIC_OPEN_AI_BASE_PATH='http://proxy.url.openai.com/v1'
  70. # GENERIC_OPEN_AI_MODEL_PREF='gpt-3.5-turbo'
  71. # GENERIC_OPEN_AI_MODEL_TOKEN_LIMIT=4096
  72. # GENERIC_OPEN_AI_API_KEY=sk-123abc
  73. # LLM_PROVIDER='litellm'
  74. # LITE_LLM_MODEL_PREF='gpt-3.5-turbo'
  75. # LITE_LLM_MODEL_TOKEN_LIMIT=4096
  76. # LITE_LLM_BASE_PATH='http://127.0.0.1:4000'
  77. # LITE_LLM_API_KEY='sk-123abc'
  78. # LLM_PROVIDER='novita'
  79. # NOVITA_LLM_API_KEY='your-novita-api-key-here' check on https://novita.ai/settings#key-management
  80. # NOVITA_LLM_MODEL_PREF='deepseek/deepseek-r1'
  81. # LLM_PROVIDER='cohere'
  82. # COHERE_API_KEY=
  83. # COHERE_MODEL_PREF='command-r'
  84. # LLM_PROVIDER='apipie'
  85. # APIPIE_LLM_API_KEY='sk-123abc'
  86. # APIPIE_LLM_MODEL_PREF='openrouter/llama-3.1-8b-instruct'
  87. # LLM_PROVIDER='xai'
  88. # XAI_LLM_API_KEY='xai-your-api-key-here'
  89. # XAI_LLM_MODEL_PREF='grok-beta'
  90. # LLM_PROVIDER='nvidia-nim'
  91. # NVIDIA_NIM_LLM_BASE_PATH='http://127.0.0.1:8000'
  92. # NVIDIA_NIM_LLM_MODEL_PREF='meta/llama-3.2-3b-instruct'
  93. ###########################################
  94. ######## Embedding API SElECTION ##########
  95. ###########################################
  96. # Only used if you are using an LLM that does not natively support embedding (openai or Azure)
  97. # EMBEDDING_ENGINE='openai'
  98. # OPEN_AI_KEY=sk-xxxx
  99. # EMBEDDING_MODEL_PREF='text-embedding-ada-002'
  100. # EMBEDDING_ENGINE='azure'
  101. # AZURE_OPENAI_ENDPOINT=
  102. # AZURE_OPENAI_KEY=
  103. # EMBEDDING_MODEL_PREF='my-embedder-model' # This is the "deployment" on Azure you want to use for embeddings. Not the base model. Valid base model is text-embedding-ada-002
  104. # EMBEDDING_ENGINE='localai'
  105. # EMBEDDING_BASE_PATH='http://localhost:8080/v1'
  106. # EMBEDDING_MODEL_PREF='text-embedding-ada-002'
  107. # EMBEDDING_MODEL_MAX_CHUNK_LENGTH=1000 # The max chunk size in chars a string to embed can be
  108. # EMBEDDING_ENGINE='ollama'
  109. # EMBEDDING_BASE_PATH='http://127.0.0.1:11434'
  110. # EMBEDDING_MODEL_PREF='nomic-embed-text:latest'
  111. # EMBEDDING_MODEL_MAX_CHUNK_LENGTH=8192
  112. # EMBEDDING_ENGINE='lmstudio'
  113. # EMBEDDING_BASE_PATH='https://localhost:1234/v1'
  114. # EMBEDDING_MODEL_PREF='nomic-ai/nomic-embed-text-v1.5-GGUF/nomic-embed-text-v1.5.Q4_0.gguf'
  115. # EMBEDDING_MODEL_MAX_CHUNK_LENGTH=8192
  116. # EMBEDDING_ENGINE='cohere'
  117. # COHERE_API_KEY=
  118. # EMBEDDING_MODEL_PREF='embed-english-v3.0'
  119. # EMBEDDING_ENGINE='voyageai'
  120. # VOYAGEAI_API_KEY=
  121. # EMBEDDING_MODEL_PREF='voyage-large-2-instruct'
  122. # EMBEDDING_ENGINE='litellm'
  123. # EMBEDDING_MODEL_PREF='text-embedding-ada-002'
  124. # EMBEDDING_MODEL_MAX_CHUNK_LENGTH=8192
  125. # LITE_LLM_BASE_PATH='http://127.0.0.1:4000'
  126. # LITE_LLM_API_KEY='sk-123abc'
  127. # EMBEDDING_ENGINE='generic-openai'
  128. # EMBEDDING_MODEL_PREF='text-embedding-ada-002'
  129. # EMBEDDING_MODEL_MAX_CHUNK_LENGTH=8192
  130. # EMBEDDING_BASE_PATH='http://127.0.0.1:4000'
  131. # GENERIC_OPEN_AI_EMBEDDING_API_KEY='sk-123abc'
  132. # GENERIC_OPEN_AI_EMBEDDING_MAX_CONCURRENT_CHUNKS=500
  133. # EMBEDDING_ENGINE='gemini'
  134. # GEMINI_EMBEDDING_API_KEY=
  135. # EMBEDDING_MODEL_PREF='text-embedding-004'
  136. ###########################################
  137. ######## Vector Database Selection ########
  138. ###########################################
  139. # Enable all below if you are using vector database: Chroma.
  140. # VECTOR_DB="chroma"
  141. # CHROMA_ENDPOINT='http://localhost:8000'
  142. # CHROMA_API_HEADER="X-Api-Key"
  143. # CHROMA_API_KEY="sk-123abc"
  144. # Enable all below if you are using vector database: Pinecone.
  145. # VECTOR_DB="pinecone"
  146. # PINECONE_API_KEY=
  147. # PINECONE_INDEX=
  148. # Enable all below if you are using vector database: Astra DB.
  149. # VECTOR_DB="astra"
  150. # ASTRA_DB_APPLICATION_TOKEN=
  151. # ASTRA_DB_ENDPOINT=
  152. # Enable all below if you are using vector database: LanceDB.
  153. VECTOR_DB="lancedb"
  154. # Enable all below if you are using vector database: Weaviate.
  155. # VECTOR_DB="weaviate"
  156. # WEAVIATE_ENDPOINT="http://localhost:8080"
  157. # WEAVIATE_API_KEY=
  158. # Enable all below if you are using vector database: Qdrant.
  159. # VECTOR_DB="qdrant"
  160. # QDRANT_ENDPOINT="http://localhost:6333"
  161. # QDRANT_API_KEY=
  162. # Enable all below if you are using vector database: Milvus.
  163. # VECTOR_DB="milvus"
  164. # MILVUS_ADDRESS="http://localhost:19530"
  165. # MILVUS_USERNAME=
  166. # MILVUS_PASSWORD=
  167. # Enable all below if you are using vector database: Zilliz Cloud.
  168. # VECTOR_DB="zilliz"
  169. # ZILLIZ_ENDPOINT="https://sample.api.gcp-us-west1.zillizcloud.com"
  170. # ZILLIZ_API_TOKEN=api-token-here
  171. ###########################################
  172. ######## Audio Model Selection ############
  173. ###########################################
  174. # (default) use built-in whisper-small model.
  175. WHISPER_PROVIDER="local"
  176. # use openai hosted whisper model.
  177. # WHISPER_PROVIDER="openai"
  178. # OPEN_AI_KEY=sk-xxxxxxxx
  179. ###########################################
  180. ######## TTS/STT Model Selection ##########
  181. ###########################################
  182. TTS_PROVIDER="native"
  183. # TTS_PROVIDER="openai"
  184. # TTS_OPEN_AI_KEY=sk-example
  185. # TTS_OPEN_AI_VOICE_MODEL=nova
  186. # TTS_PROVIDER="elevenlabs"
  187. # TTS_ELEVEN_LABS_KEY=
  188. # TTS_ELEVEN_LABS_VOICE_MODEL=21m00Tcm4TlvDq8ikWAM # Rachel
  189. # TTS_PROVIDER="generic-openai"
  190. # TTS_OPEN_AI_COMPATIBLE_KEY=sk-example
  191. # TTS_OPEN_AI_COMPATIBLE_VOICE_MODEL=nova
  192. # TTS_OPEN_AI_COMPATIBLE_ENDPOINT="https://api.openai.com/v1"
  193. # CLOUD DEPLOYMENT VARIRABLES ONLY
  194. # AUTH_TOKEN="hunter2" # This is the password to your application if remote hosting.
  195. # STORAGE_DIR= # absolute filesystem path with no trailing slash
  196. ###########################################
  197. ######## PASSWORD COMPLEXITY ##############
  198. ###########################################
  199. # Enforce a password schema for your organization users.
  200. # Documentation on how to use https://github.com/kamronbatman/joi-password-complexity
  201. #PASSWORDMINCHAR=8
  202. #PASSWORDMAXCHAR=250
  203. #PASSWORDLOWERCASE=1
  204. #PASSWORDUPPERCASE=1
  205. #PASSWORDNUMERIC=1
  206. #PASSWORDSYMBOL=1
  207. #PASSWORDREQUIREMENTS=4
  208. ###########################################
  209. ######## ENABLE HTTPS SERVER ##############
  210. ###########################################
  211. # By enabling this and providing the path/filename for the key and cert,
  212. # the server will use HTTPS instead of HTTP.
  213. #ENABLE_HTTPS="true"
  214. #HTTPS_CERT_PATH="sslcert/cert.pem"
  215. #HTTPS_KEY_PATH="sslcert/key.pem"
  216. ###########################################
  217. ######## AGENT SERVICE KEYS ###############
  218. ###########################################
  219. #------ SEARCH ENGINES -------
  220. #=============================
  221. #------ Google Search -------- https://programmablesearchengine.google.com/controlpanel/create
  222. # AGENT_GSE_KEY=
  223. # AGENT_GSE_CTX=
  224. #------ SearchApi.io ----------- https://www.searchapi.io/
  225. # AGENT_SEARCHAPI_API_KEY=
  226. # AGENT_SEARCHAPI_ENGINE=google
  227. #------ Serper.dev ----------- https://serper.dev/
  228. # AGENT_SERPER_DEV_KEY=
  229. #------ Bing Search ----------- https://portal.azure.com/
  230. # AGENT_BING_SEARCH_API_KEY=
  231. #------ Serply.io ----------- https://serply.io/
  232. # AGENT_SERPLY_API_KEY=
  233. #------ SearXNG ----------- https://github.com/searxng/searxng
  234. # AGENT_SEARXNG_API_URL=
  235. #------ Tavily ----------- https://www.tavily.com/
  236. # AGENT_TAVILY_API_KEY=
  237. ###########################################
  238. ######## Other Configurations ############
  239. ###########################################
  240. # Disable viewing chat history from the UI and frontend APIs.
  241. # See https://docs.anythingllm.com/configuration#disable-view-chat-history for more information.
  242. # DISABLE_VIEW_CHAT_HISTORY=1
  243. # Enable simple SSO passthrough to pre-authenticate users from a third party service.
  244. # See https://docs.anythingllm.com/configuration#simple-sso-passthrough for more information.
  245. # SIMPLE_SSO_ENABLED=1