从IBM文档中获取答案

watsonx Code Assistant 试验计划 基本计划 标准计划

使用聊天功能提问,参考IBM和Red Hat产品文档。

此功能需要使用IBM Cloud。试用版、精华版或标准版计划。 如果使用watsonx Code Assistant则无法使用。单独访问本地IBM Granite模型时,它将不可用。

用于文档问题的聊天语法

聊天语法为 /docs [collection:<collection_name>] <your question>

collection_name 是可选项。 如果没有指定集合,则使用 ibm_docs

可用的文献集有

文件收藏
集合 (Collection) 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

示例

示例
Type 示例问题
一般产品信息 /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,您应该会收到一个使用文档中命令语法的响应。