OpenAIChatCopilotOptions.WithDocuments

WithDocuments(DocumentCollection)

设置聊天助手选项的文档集合。

public OpenAIChatCopilotOptions WithDocuments(DocumentCollection documentCollection)
参数类型描述
documentCollectionDocumentCollection要设置的文档集合。

返回值

当前的 OpenAIChatCopilotOptions 实例。

另请参阅


WithDocuments(List<TextDocument>)

将多个文本文档添加到聊天助手选项的文档集合中。

public OpenAIChatCopilotOptions WithDocuments(List<TextDocument> textDocuments)
参数类型描述
textDocumentsList`1要添加的文本文档列表。

返回值

当前的 OpenAIChatCopilotOptions 实例。

另请参阅


WithDocuments(List<PdfDocument>)

将多个 PDF 文档添加到聊天助手选项的文档集合中。

public OpenAIChatCopilotOptions WithDocuments(List<PdfDocument> pdfDocuments)
参数类型描述
pdfDocumentsList`1要添加的 PDF 文档列表。

返回值

当前的 OpenAIChatCopilotOptions 实例。

另请参阅


WithDocuments(List<string>)

将多个文档路径添加到聊天助手选项的文档集合中。

public OpenAIChatCopilotOptions WithDocuments(List<string> filePaths)
参数类型描述
filePathsList`1要添加的文件路径列表。

返回值

当前的 OpenAIChatCopilotOptions 实例。

另请参阅