從IBM文檔中取得答案
watsonx Code Assistant 試用計劃必需品計劃標準計劃
使用聊天來提出引用IBM和Red Hat產品文件的問題。
此功能需要IBM Cloud試用版、基本版或標準版套件。 如果您使用watsonx Code Assistant individual 存取本地IBM Granite模型,則該功能不可用。
文件問題的聊天語法
聊天語法是:
/docs [collection:<collection_name>] <your question>
collection_name 是可選的。 如果沒有指定集合,則使用 ibm_docs。
可用的文檔集合有:
| 集合 | 來源 | URL參考 |
|---|---|---|
ibm_docs |
IBM Documentation | https://www.ibm.com/docs |
cloud_docs |
IBM Cloud 文件 | https://cloud.ibm.com/docs/ |
redhat |
Red Hat文檔 | https://docs.redhat.com/products |
ibm_redbooks |
IBM Redbooks 出版物 | https://www.redbooks.ibm.com/ |
support_docs |
IBM支援內容 | https://www.ibm.com/support/ |
general_technical_docs |
IBM研究與SecurityIntelligence | https://research.ibm.com/和https://securityintelligence.com/articles |
範例
| 類型 | 範例問題 |
|---|---|
| 一般產品資訊 | /docs what are the different IBM Cognos Analytics offerings for which IBM provides commands to? |
| 執行任務 | /docs What is the command to back up a database in Db2? Enclose the command in code blocks. |
| 解決錯誤代碼 | /docs collection:support_docs I am getting this error: Internal error occurred: SCAPI error: The value on row 1,029 is not a valid string while previewing a data asset using import node. Can you provide a workaround for this? |
| 查詢特定集合 | /docs collection:redhat What are Machine pools in Cluster administration nodes in Red Hat OpenShift dedicated? |
提示
這些提示可以幫助改善您的 /docs 問題。
使用產品名稱
請務必指定產品名稱。How to back up a database 可能會從Db2檢索結果,但 How to back up a Db2 database 效果更好。
版本號碼
watsonx Code Assistant所使用的來源包含有關IBM產品最新版本的文件。 如果您在查詢中指定版本號,則有關舊版本的問題可能會起作用。
環境定義
當watsonx Code Assistant回答 /docs 問題時,它不會使用聊天視窗或開啟檔案中的任何其他上下文。 上下文是從IBM產品文件中檢索的。
/docs 問題的回應將成為您聊天上下文的一部分。 您的下一個聊天問題可以使用文件回應作為上下文來幫助指導watsonx Code Assistant。
例如,您可以詢問:/docs what is the command to back up a Db2 database. Format the command in Markdown.
當您收到命令的回應時,您可以詢問:Create a script to back up the Db2 database REVENUE,您應該會收到使用文件中的命令語法的回應。