olli-ai commited on
Commit
2b05548
1 Parent(s): 9ecb0a1

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. .env +29 -37
.env CHANGED
@@ -54,51 +54,43 @@ CA_PATH=#
54
  CLIENT_KEY_PASSWORD=#
55
  REJECT_UNAUTHORIZED=true
56
 
57
- # TEXT_EMBEDDING_MODELS = `[
58
- # {
59
- # "name": "Xenova/gte-small",
60
- # "displayName": "Xenova/gte-small",
61
- # "description": "Local embedding model running on the server.",
62
- # "chunkCharLength": 512,
63
- # "endpoints": [
64
- # { "type": "transformersjs" }
65
- # ]
66
- # }
67
- # ]`
68
 
69
  # 'name', 'userMessageToken', 'assistantMessageToken' are required
70
  MODELS=`[
71
  {
72
- "name": "Maika-Buddy-3B8-Chat",
73
- "displayName": "Maika-Buddy-3B8-Chat",
74
- "description": "Maika Buddy.",
75
- "websiteUrl": "https://maika.ai/",
76
- "userMessageToken": "",
77
- "userMessageEndToken": "",
78
- "assistantMessageToken": "",
79
- "assistantMessageEndToken": "",
80
- "preprompt": "You are Maika, a buddy, specially designed to engage and communicate with toddlers. You will give helpful, easy-to-understand, detailed, and polite answers to the questions of the toddler. Your answers should be akin to storytelling. Use vivid imagery and simple comparisons to everyday objects or experiences familiar to a toddler.",
81
  "parameters": {
82
- "temperature": 0.3,
83
  "top_p": 0.95,
84
- "repetition_penalty": 1.1,
85
  "top_k": 50,
86
  "truncate": 3072,
87
  "max_new_tokens": 1024,
88
- "stream": true,
89
- "stop": ["<|end|>"]
90
  },
91
- "endpoints": [{
92
- "type": "openai",
93
- "baseURL": "http://67.2.167.83:43185/v1"
94
- }],
95
  "promptExamples": [
96
  {
97
- "title": "Invent a new toy",
98
- "prompt": "If you could invent a new toy, what would it do and what would you call it?"
99
  }, {
100
- "title": "Cinderella",
101
- "prompt": "Tell me story of Cinderella."
102
  }, {
103
  "title": "Assist in a task",
104
  "prompt": "How do I make a delicious lemon cheesecake?"
@@ -116,9 +108,9 @@ PUBLIC_GOOGLE_ANALYTICS_ID=#G-XXXXXXXX / Leave empty to disable
116
  PUBLIC_PLAUSIBLE_SCRIPT_URL=#/js/script.js / Leave empty to disable
117
  PUBLIC_ANNOUNCEMENT_BANNERS=`[
118
  {
119
- "title": "Maika Buddy is coming soon",
120
  "linkTitle": "try it",
121
- "linkHref": "https://maika.ai"
122
  }
123
  ]`
124
 
@@ -134,10 +126,10 @@ RATE_LIMIT= # /!\ Legacy definition of messages per minute. Use USAGE_LIMITS.mes
134
  MESSAGES_BEFORE_LOGIN=# how many messages a user can send in a conversation before having to login. set to 0 to force login right away
135
 
136
  APP_BASE="" # base path of the app, e.g. /chat, left blank as default
137
- PUBLIC_APP_NAME=MaikaBuddy # name used as title throughout the app
138
  PUBLIC_APP_ASSETS=chatui # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
139
- PUBLIC_APP_COLOR=red # can be any of tailwind colors: https://tailwindcss.com/docs/customizing-colors#default-color-palette
140
- PUBLIC_APP_DESCRIPTION="Here is Maika Buddy, developed by Olli Technology"
141
  PUBLIC_APP_DATA_SHARING=#set to 1 to enable options & text regarding data sharing
142
  PUBLIC_APP_DISCLAIMER=#set to 1 to show a disclaimer on login page
143
  PUBLIC_APP_DISCLAIMER_MESSAGE="Disclaimer: AI is an area of active research with known problems such as biased generation and misinformation. Do not use this application for high-stakes decisions or advice. Do not insert your personal data, especially sensitive, like health data."
 
54
  CLIENT_KEY_PASSWORD=#
55
  REJECT_UNAUTHORIZED=true
56
 
57
+ TEXT_EMBEDDING_MODELS = `[
58
+ {
59
+ "name": "Xenova/gte-small",
60
+ "displayName": "Xenova/gte-small",
61
+ "description": "Local embedding model running on the server.",
62
+ "chunkCharLength": 512,
63
+ "endpoints": [
64
+ { "type": "transformersjs" }
65
+ ]
66
+ }
67
+ ]`
68
 
69
  # 'name', 'userMessageToken', 'assistantMessageToken' are required
70
  MODELS=`[
71
  {
72
+ "name": "mistralai/Mistral-7B-Instruct-v0.1",
73
+ "displayName": "mistralai/Mistral-7B-Instruct-v0.1",
74
+ "description": "Mistral 7B is a new Apache 2.0 model, released by Mistral AI that outperforms Llama2 13B in benchmarks.",
75
+ "websiteUrl": "https://mistral.ai/news/announcing-mistral-7b/",
76
+ "preprompt": "",
77
+ "chatPromptTemplate" : "<s>{{#each messages}}{{#ifUser}}[INST] {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}}{{content}} [/INST]{{/ifUser}}{{#ifAssistant}}{{content}}</s>{{/ifAssistant}}{{/each}}",
 
 
 
78
  "parameters": {
79
+ "temperature": 0.1,
80
  "top_p": 0.95,
81
+ "repetition_penalty": 1.2,
82
  "top_k": 50,
83
  "truncate": 3072,
84
  "max_new_tokens": 1024,
85
+ "stop": ["</s>"]
 
86
  },
 
 
 
 
87
  "promptExamples": [
88
  {
89
+ "title": "Write an email from bullet list",
90
+ "prompt": "As a restaurant owner, write a professional email to the supplier to get these products every week: \n\n- Wine (x10)\n- Eggs (x24)\n- Bread (x12)"
91
  }, {
92
+ "title": "Code a snake game",
93
+ "prompt": "Code a basic snake game in python, give explanations for each step."
94
  }, {
95
  "title": "Assist in a task",
96
  "prompt": "How do I make a delicious lemon cheesecake?"
 
108
  PUBLIC_PLAUSIBLE_SCRIPT_URL=#/js/script.js / Leave empty to disable
109
  PUBLIC_ANNOUNCEMENT_BANNERS=`[
110
  {
111
+ "title": "Code Llama 70B is available! 🦙",
112
  "linkTitle": "try it",
113
+ "linkHref": "https://huggingface.co/chat?model=codellama/CodeLlama-70b-Instruct-hf"
114
  }
115
  ]`
116
 
 
126
  MESSAGES_BEFORE_LOGIN=# how many messages a user can send in a conversation before having to login. set to 0 to force login right away
127
 
128
  APP_BASE="" # base path of the app, e.g. /chat, left blank as default
129
+ PUBLIC_APP_NAME=ChatUI # name used as title throughout the app
130
  PUBLIC_APP_ASSETS=chatui # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
131
+ PUBLIC_APP_COLOR=blue # can be any of tailwind colors: https://tailwindcss.com/docs/customizing-colors#default-color-palette
132
+ PUBLIC_APP_DESCRIPTION=# description used throughout the app (if not set, a default one will be used)
133
  PUBLIC_APP_DATA_SHARING=#set to 1 to enable options & text regarding data sharing
134
  PUBLIC_APP_DISCLAIMER=#set to 1 to show a disclaimer on login page
135
  PUBLIC_APP_DISCLAIMER_MESSAGE="Disclaimer: AI is an area of active research with known problems such as biased generation and misinformation. Do not use this application for high-stakes decisions or advice. Do not insert your personal data, especially sensitive, like health data."