在ChromaDB中选择从集合中返回哪些数据


文档摘要

在ChromaDB中选择从集合中返回哪些数据 本教程将指导您如何在ChromaDB中选择从集合中返回哪些数据。 创建集合 我们首先初始化ChromaDB客户端,并创建一个名为 的集合。 添加原始文档 我们使用 方法向集合中添加了三个原始文档。每个文档都与一个唯一的ID相关联。 根据文本查询集合并选择要返回的数据 我们可以使用 method. In this example, we search for the phrase "make a choice" and ask for one result.


发布者: 作者: 转发
评论区 (0)
U