forked from GoogleCloudPlatform/generative-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.py
112 lines (103 loc) · 3.56 KB
/
consts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Vertex AI Search Demo Constant Definitions"""
PROJECT_ID = "YOUR_PROJECT_ID"
LOCATION = "global"
WIDGET_CONFIGS = [
{
"name": "Contracts (Unstructured)",
"config_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"placeholder": "What is the SLA?",
},
{
"name": "Alphabet Earnings Reports (Unstructured)",
"config_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"placeholder": "What was Google's revenue in 2021?",
},
]
CUSTOM_UI_DATASTORE_IDS = [
{
"name": "Google Cloud Website",
"datastore_id": "google-cloud-site-search_xxxxxxxx",
},
{
"name": "Google Merchandise Store (Advanced Indexing)",
"datastore_id": "google-merch-store_xxxxxxxx",
},
]
IMAGE_SEARCH_DATASTORE_IDs = [
{
"name": "Google Merchandise Store",
"datastore_id": "google-merch-store_xxxxxxx",
}
]
RECOMMENDATIONS_DATASTORE_IDs = [
{
"name": "ArXiv Natural Language Papers",
"datastore_id": "arxiv_xxxxxxxxxx",
"engine_id": "arxiv-personalize_xxxxxxxx",
}
]
# iso639-1 code
# First Index will be default selection
VALID_LANGUAGES = [
{"code": "en", "name": "English"},
{"code": "sq", "name": "Albanian"},
{"code": "ar", "name": "Arabic"},
{"code": "hy", "name": "Armenian"},
{"code": "eu", "name": "Basque"},
{"code": "bn", "name": "Bengali"},
{"code": "bg", "name": "Bulgarian"},
{"code": "ca", "name": "Catalan"},
{"code": "km", "name": "Central Khmer"},
{"code": "zh", "name": "Chinese"},
{"code": "hr", "name": "Croatian"},
{"code": "cs", "name": "Czech"},
{"code": "da", "name": "Danish"},
{"code": "nl", "name": "Dutch"},
{"code": "fil", "name": "Filipino"},
{"code": "fi", "name": "Finnish"},
{"code": "fr", "name": "French"},
{"code": "gl", "name": "Galician"},
{"code": "de", "name": "German"},
{"code": "iw", "name": "Hebrew"},
{"code": "hi", "name": "Hindi"},
{"code": "hu", "name": "Hungarian"},
{"code": "is", "name": "Icelandic"},
{"code": "id", "name": "Indonesian"},
{"code": "ga", "name": "Irish"},
{"code": "it", "name": "Italian"},
{"code": "ja", "name": "Japanese"},
{"code": "ko", "name": "Korean"},
{"code": "lo", "name": "Lao"},
{"code": "lv", "name": "Latvian"},
{"code": "lt", "name": "Lithuanian"},
{"code": "el", "name": "Modern Greek"},
{"code": "no", "name": "Norwegian"},
{"code": "fa", "name": "Persian"},
{"code": "pl", "name": "Polish"},
{"code": "pt", "name": "Portuguese"},
{"code": "ro", "name": "Romanian"},
{"code": "ru", "name": "Russian"},
{"code": "sr", "name": "Serbian"},
{"code": "sk", "name": "Slovak"},
{"code": "sl", "name": "Slovenian"},
{"code": "es", "name": "Spanish"},
{"code": "sv", "name": "Swedish"},
{"code": "th", "name": "Thai"},
{"code": "tr", "name": "Turkish"},
{"code": "uk", "name": "Ukrainian"},
{"code": "vi", "name": "Vietnamese"},
]
SUMMARY_MODELS = ["stable", "preview"]