Editing
Troubleshooting of Google Vertex AI Search in Mandarin
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== 疑難排解:Vertex AI Search:啟用 Grounding 遇到路徑格式錯誤 === 「[https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/grounding-with-vertex-ai-search?hl=zh-TW 利用 Vertex AI Search 建立基準]」時遇到錯誤: '''錯誤訊息:''' <pre> 路徑必須採用下列格式: projects/{project_id}/locations/{location}/collections/{collection_name}/dataStores/{datastore_name} </pre> '''解決方案:''' 如何找到正確的路徑參數: # 前往 https://console.cloud.google.com/gen-app-builder/engines # 選擇要套用的資料儲存庫 # 點擊「整合」分頁 # 查看「在 Cloud Shell 執行範例要求」下方的範例指令 範例 curl 指令: <pre> curl -X POST -H "Authorization: Bearer $(gcloud auth print-access-token)" \ -H "Content-Type: application/json" \ "https://discoveryengine.googleapis.com/v1alpha/projects/987654321000/locations/global/collections/default_collection/engines/vertex-search_123/servingConfigs/default_search:search" \ -d '{"query":"<QUERY>","pageSize":10,"queryExpansionSpec":{"condition":"AUTO"},"spellCorrectionSpec":{"mode":"AUTO"},"languageCode":"zh-TW","userInfo":{"timeZone":"Asia/Taipei"}}' </pre> 從 URL 中擷取參數: {{kbd | key=<nowiki>/projects/987654321000/locations/global/collections/default_collection/engines/vertex-search_123/</nowiki>}} # {project_id}:`987654321000`(`/projects/` 之後的數字) # {location}:`global`(`/locations/` 之後的字串){{exclaim}} 注意:請勿輸入 GCP 伺服器的[https://cloud.google.com/compute/docs/regions-zones?hl=zh-tw 地理區域],將會遇到錯誤訊息「Invalid location in serving config: asia-east1」 # {collection_name}:`default_collection`(`/collections/` 之後的字串) # {datastore_name}:在資料儲存庫總覽頁面顯示為「資料儲存庫 ID」(例如:`XXX_1234567890123`){{exclaim}} 注意:datastore_name 在 engine URL 中找不到,需要到資料儲存庫總覽頁面查看「資料儲存庫 ID」。
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information