Skip to content

Commit

Permalink
Merge pull request #3685 from CityOfBoston/master
Browse files Browse the repository at this point in the history
(production) AI Search, config sync, event display time
  • Loading branch information
davidrkupton authored Oct 31, 2024
2 parents f160640 + 2b123db commit 432ce9d
Show file tree
Hide file tree
Showing 210 changed files with 12,813 additions and 529 deletions.
1 change: 1 addition & 0 deletions config/acquia_dev/config_ignore.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ignored_config_entities:
- bos_google_cloud.prompts
- bos_mnl.settings
- bos_swiftype.settings
- bos_search.settings:presets
- 'core.entity_view_display.node.metrolist_development.*'
- geolocation_google_maps.settings
- 'paragraphs.paragraphs_type.*:dependencies.content|icon_uuid'
Expand Down
1 change: 1 addition & 0 deletions config/acquia_prod/config_ignore.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ignored_config_entities:
- bos_google_cloud.prompts
- bos_mnl.settings
- bos_swiftype.settings
- bos_search.settings:presets
- 'core.entity_view_display.node.metrolist_development.*'
- geolocation_google_maps.settings
- 'paragraphs.paragraphs_type.*:dependencies.content|icon_uuid'
Expand Down
3 changes: 1 addition & 2 deletions config/acquia_prod/xmlsitemap_engines.settings.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
_core:
default_config_hash: cufENE0oxs6iqDK4ygjKRjgR7TljgtrB1U-O03lBmgY
engines:
bing: '1'
google: '1'
google: google
custom_urls: ''
minimum_lifetime: 21600
1 change: 1 addition & 0 deletions config/acquia_stage/config_ignore.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ignored_config_entities:
- bos_google_cloud.prompts
- bos_mnl.settings
- bos_swiftype.settings
- bos_search.settings:presets
- 'core.entity_view_display.node.metrolist_development.*'
- geolocation_google_maps.settings
- 'paragraphs.paragraphs_type.*:dependencies.content|icon_uuid'
Expand Down
31 changes: 31 additions & 0 deletions config/default/block.block.bos_theme_aienabledsearchbutton.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
uuid: 7cb0ed9c-1a5d-4a8e-b644-4ba29e006c28
langcode: en
status: true
dependencies:
module:
- bos_search
- system
theme:
- bos_theme
id: bos_theme_aienabledsearchbutton
theme: bos_theme
region: content
weight: -2
provider: null
plugin: Ai-enabled-search-button
settings:
id: Ai-enabled-search-button
label: 'Beta Search'
label_display: '0'
provider: bos_search
search_button_title: 'Try AI Search'
search_button_css: ''
aisearch_config_preset: vertex_search
aisearch_config_display: '1'
aisearch_config_searchpage: /search-beta-page
search_block_text: 'Through our AI search, you can quickly find semantic answers to your questions related to Office of Economic Opportunity and Inclusion services.'
visibility:
request_path:
id: request_path
negate: false
pages: /ai-search
31 changes: 31 additions & 0 deletions config/default/block.block.bos_theme_aienabledsearchbutton_2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
uuid: 9f83fc29-e8dc-40c9-bba5-799b507f8d90
langcode: en
status: false
dependencies:
module:
- bos_search
- system
theme:
- bos_theme
id: bos_theme_aienabledsearchbutton_2
theme: bos_theme
region: content
weight: -1
provider: null
plugin: Ai-enabled-search-button
settings:
id: Ai-enabled-search-button
label: 'Modal Search Button'
label_display: visible
provider: bos_search
search_button_title: 'Search Modal'
search_button_css: ''
aisearch_config_preset: vertex_conversation
aisearch_config_display: '0'
aisearch_config_searchpage: ''
search_block_text: ''
visibility:
request_path:
id: request_path
negate: false
pages: /ai-search
27 changes: 27 additions & 0 deletions config/default/block.block.bos_theme_aienabledsearchform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
uuid: 838600a1-c35e-4157-b1a9-30b2fa5ad3ca
langcode: en
status: true
dependencies:
module:
- bos_search
- system
theme:
- bos_theme
id: bos_theme_aienabledsearchform
theme: bos_theme
region: content
weight: 0
provider: null
plugin: Ai-enabled-search-form
settings:
id: Ai-enabled-search-form
label: 'AI Enabled Search Form'
label_display: '0'
provider: bos_search
search_form_title: null
aisearch_config_preset: vertex_search
visibility:
request_path:
id: request_path
negate: false
pages: /search-beta-page
2 changes: 2 additions & 0 deletions config/default/block.block.footermenu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ settings:
depth: 0
expand_all_items: false
parent: 'menu-footer-menu:'
render_parent: false
suggestion: menu_footer_menu
hide_on_nonactive: false
expand: 0
visibility: { }
2 changes: 2 additions & 0 deletions config/default/block.block.mainmenu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ settings:
depth: 0
expand_all_items: false
parent: 'main:'
render_parent: false
suggestion: menu_main_menu
hide_on_nonactive: false
expand: 0
visibility: { }
2 changes: 1 addition & 1 deletion config/default/bos_google_cloud.prompts.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
base: '[]'
summarizer: '{"spam":"UHJvdmlkZSBhIHByb2JhYmlsaXR5IHRoYXQgdGhpcyBlbWFpbCB0ZXh0IGlzIHNwYW0u","rollcall":"UHJvdmlkZSBhIHNob3J0IHRleHQgdGl0bGUgZm9yIHRoZSBmb2xsb3dpbmcgdGV4dCwgd2hpY2ggaXMgYSB2b3RpbmcgcmVjb3JkIG9mIGEgQ2l0eSBDb3VuY2lsIG1lZXRpbmcuIE9ubHkgdGhlIHRpdGxlIGlzIHJlcXVpcmVkLiBEbyBub3QgaW5jbHVkZSBtYXJrZG93biBmb3JtYXR0aW5nLg=="}'
rewriter: '[]'
search: '[]'
search: '{"aiSearch":"R2l2ZW4gdGhlIGNvbnZlcnNhdGlvbiBiZXR3ZWVuIGEgdXNlciBhbmQgYSBoZWxwZnVsIGFzc2lzdGFudCBhbmQgc29tZSBzZWFyY2ggcmVzdWx0cywgY3JlYXRlIGEgZmluYWwgYW5zd2VyIGZvciB0aGUgYXNzaXN0YW50LiBUaGUgYW5zd2VyIHNob3VsZCB1c2UgYWxsIHJlbGV2YW50IGluZm9ybWF0aW9uIGZyb20gdGhlIHNlYXJjaCByZXN1bHRzLCBub3QgaW50cm9kdWNlIGFueSBhZGRpdGlvbmFsIGluZm9ybWF0aW9uLCBhbmQgdXNlIGV4YWN0bHkgdGhlIHNhbWUgd29yZHMgYXMgdGhlIHNlYXJjaCByZXN1bHRzIHdoZW4gcG9zc2libGUuIFRoZSBhc3Npc3RhbnQncyBhbnN3ZXIgc2hvdWxkIGJlIG5vIG1vcmUgdGhhbiAyMCBzZW50ZW5jZXMuIFRoZSB1c2VyIGlzIGEgbWVtYmVyIG9mIHRoZSBnZW5lcmFsIHB1YmxpYyB3aG8gZG9lc24ndCBoYXZlIGluLWRlcHRoIGtub3dsZWRnZSBvZiB0aGUgc3ViamVjdCBtYXR0ZXIuIFRoZSBhc3Npc3RhbnQgc2hvdWxkIGF2b2lkIHVzaW5nIHNwZWNpYWxpemVkIGtub3dsZWRnZSwgYW5kIGluc3RlYWQgYW5zd2VyIGluIGEgbm9uLXRlY2huaWNhbCBtYW5uZXIgdGhhdCBhbnlvbmUgY2FuIHVuZGVyc3RhbmQu"}'
translation: '[]'
13 changes: 7 additions & 6 deletions config/default/bos_google_cloud.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@ search:
endpoint: 'https://discoveryengine.googleapis.com'
service_account: service_account_1
conversation:
project_id: '612042612588'
datastore_id: drupalwebsite_1702919119768
project_id: '738313172788'
datastore_id: oeoi-pilot-datastore_1726265795910
location_id: global
endpoint: 'https://discoveryengine.googleapis.com'
service_account: service_account_1
allow_conversation: 0
allow_conversation: 1
model: stable
rewriter:
project_id: vertex-ai-poc-406419
model_id: gemini-pro
location_id: us-east4
endpoint: 'https://us-east4-aiplatform.googleapis.com'
model_id: gemini-1.5-pro-preview-0409
location_id: us-central1
endpoint: 'https://us-central1-aiplatform.googleapis.com'
service_account: service_account_1
cache: '+1 day'
translate:
Expand Down
77 changes: 77 additions & 0 deletions config/default/bos_search.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
presets:
vertex_conversation:
name: 'Vertex Conversation'
aimodel: 'Vertex Conversation'
model_tuning:
prompt: default
safe_search: '1'
semantic_chunks: null
searchform:
theme: concierge
disclaimer:
enabled: '1'
show_once: '1'
text: 'We are trying something new! This is an experimental search that displays business-related results and information leveraging generative artificial intelligence (AI). Since this is a test site, there is a chance that some answers will be incomplete or inaccurate. Please double check answers using the provided links.'
modal_titlebartitle: ''
welcome:
body_title: 'What are you looking for?'
body_text: 'Our AI-generated search provides answers to your business and Economic Opportunity and Inclusion questions leveraging Google’s Vertex AI. As this is an experiment, some answers may be incorrect. You will be able to provide direct feedback below each response. If you have any questions about our work, please email <a href="mailto:[email protected]">[email protected]</a>.'
cards:
enabled: '1'
card_1: 'How do I get a food truck permit?'
card_2: 'How do I become a vendor with the City of Boston?'
card_3: 'How can I learn about funding opportunities?'
searchbar:
search_text: 'How can we help you?'
search_note: "Responses may occasionally produce inaccurate or incomplete content. Validate answers on\_Boston.gov"
allow_reset: null
audio_search_input: null
results:
waiting_text: 'Scanning boston.gov for information ...'
result_count: '5'
summary: '1'
no_result_text: ''
citations: '1'
searchresults: '1'
feedback: '1'
pid: vertex_conversation
metadata: null
pid: vertex_conversation
vertex_search:
name: 'Vertex Search'
aimodel: 'Vertex Conversation'
model_tuning:
prompt: aiSearch
safe_search: '1'
semantic_chunks: null
searchform:
theme: concierge
disclaimer:
enabled: '1'
text: 'We are trying something new! This is an experimental search that displays business-related results and information leveraging generative artificial intelligence (AI). Since this is a test site, there is a chance that some answers will be incomplete or inaccurate. Please double check answers using the provided links.'
show_once: null
modal_titlebartitle: ''
welcome:
body_title: 'What are you looking for?'
body_text: 'Our AI-generated search provides answers to your business and Economic Opportunity and Inclusion questions leveraging Google’s Vertex AI. As this is an experiment, some answers may be incorrect. You will be able to provide direct feedback below each response. If you have any questions about our work, please email <a href="mailto:[email protected]">[email protected]</a>.'
cards:
enabled: '1'
card_1: 'How do I get a food truck permit?'
card_2: 'How do I become a vendor with the City of Boston?'
card_3: 'How can I learn about funding opportunities?'
searchbar:
allow_reset: '1'
search_text: 'How can we help you?'
search_note: "Responses may occasionally produce inaccurate or incomplete content. Validate answers on\_Boston.gov"
audio_search_input: null
results:
waiting_text: 'Scanning boston.gov for information ...'
result_count: '5'
summary: '1'
no_result_text: 'No results were <a href="#">found</a>. No results were <a href="#">found</a>. No results were <a href="#">found</a>. No results were <a href="#">found</a>. No results were <a href="#">found</a>. No results were <a href="#">found</a>. No results were <a href="#">found</a>. No results were <a href="#">found</a>. No results were <a href="#">found</a>. No results were <a href="#">found</a>. No results were <a href="#">found</a>. No results were <a href="#">found</a>. '
citations: '1'
searchresults: '1'
feedback: '1'
pid: vertex_search
metadata: null
pid: vertex_search
5 changes: 4 additions & 1 deletion config/default/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module:
big_pipe: 0
block: 0
block_content: 0
bos_charts: 0
breakpoint: 0
captcha: 0
chosen_lib: 0
Expand Down Expand Up @@ -245,11 +244,13 @@ module:
node_transaction: 2
bos_311: 3
bos_assessing: 3
bos_aws_services: 3
bos_bibblio: 3
bos_bid: 3
bos_branded_links: 3
bos_cabinet: 3
bos_card: 3
bos_charts: 3
bos_city_score: 3
bos_commissions: 3
bos_components: 3
Expand All @@ -266,6 +267,7 @@ module:
bos_fyi: 3
bos_geocoder: 3
bos_google_cloud: 3
bos_gc_aisearch_plugin: 3
bos_grid: 3
bos_hero_image: 3
bos_iframe: 3
Expand All @@ -285,6 +287,7 @@ module:
bos_photo: 3
bos_quote: 3
bos_seamless_doc: 3
bos_search: 3
bos_shortcodes: 3
bos_sidebar: 3
bos_sql: 3
Expand Down
2 changes: 2 additions & 0 deletions config/default/user.role.anonymous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
module:
- bos_search
- file_entity
- lightning_core
- media
Expand All @@ -20,6 +21,7 @@ is_admin: false
permissions:
- 'access content'
- 'download any document files'
- 'view ai-enabled search permission'
- 'view files'
- 'view media'
- 'view paragraph content 3_column_w_image'
Expand Down
1 change: 1 addition & 0 deletions config/default/user.role.authenticated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ permissions:
- 'access workbench'
- 'bypass honeypot protection'
- 'download any document files'
- 'view ai-enabled search permission'
- 'view files'
- 'view media'
- 'view own unpublished media'
Expand Down
2 changes: 2 additions & 0 deletions config/default/user.role.site_administrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ permissions:
- 'access toolbar'
- 'access user profiles'
- 'administer account settings'
- 'administer ai-enabled search permission'
- 'administer boston'
- 'administer content moderation notifications'
- 'administer content types'
Expand Down Expand Up @@ -298,3 +299,4 @@ permissions:
- 'view latest version'
- 'view private files'
- 'view salesforce mapping'
- 'administer ai-enabled search permission'
Loading

0 comments on commit 432ce9d

Please sign in to comment.