OpenAIChatCopilotOptions.WithDocuments
内容
[
隐藏
]WithDocuments(DocumentCollection)
设置聊天助手选项的文档集合。
public OpenAIChatCopilotOptions WithDocuments(DocumentCollection documentCollection)
| 参数 | 类型 | 描述 |
|---|---|---|
| documentCollection | DocumentCollection | 要设置的文档集合。 |
返回值
当前的 OpenAIChatCopilotOptions 实例。
另请参阅
WithDocuments(List<TextDocument>)
将多个文本文档添加到聊天助手选项的文档集合中。
public OpenAIChatCopilotOptions WithDocuments(List<TextDocument> textDocuments)
| 参数 | 类型 | 描述 |
|---|---|---|
| textDocuments | List`1 | 要添加的文本文档列表。 |
返回值
当前的 OpenAIChatCopilotOptions 实例。
另请参阅
WithDocuments(List<PdfDocument>)
将多个 PDF 文档添加到聊天助手选项的文档集合中。
public OpenAIChatCopilotOptions WithDocuments(List<PdfDocument> pdfDocuments)
| 参数 | 类型 | 描述 |
|---|---|---|
| pdfDocuments | List`1 | 要添加的 PDF 文档列表。 |
返回值
当前的 OpenAIChatCopilotOptions 实例。
另请参阅
WithDocuments(List<string>)
将多个文档路径添加到聊天助手选项的文档集合中。
public OpenAIChatCopilotOptions WithDocuments(List<string> filePaths)
| 参数 | 类型 | 描述 |
|---|---|---|
| filePaths | List`1 | 要添加的文件路径列表。 |
返回值
当前的 OpenAIChatCopilotOptions 实例。