 在jupyter lab中,运行出现问题:
在jupyter lab中,运行出现问题:
---------------------------------------------------------------------------NotFoundError                             Traceback (most recent call last)Cell In[20], line 2      1 # 方式1:自动生成向量(使用集合指定的嵌入模型)----> 2 collection.add(      3     # 文档的集合      4     documents = ["RAG是一种检索增强生成技术", "向量数据库存储文档的嵌入表示", "在机器学习领域,智能体(Agent)通常指能够感知环境、做出决策并采取行动以实现特定目标的实体"],      5     # 文档元数据信息      6     metadatas = [{"source": "RAG"}, {"source": "向量数据库"}, {"source": "Agent"}],      7     # id      8     ids = ["id1", "id2", "id3"]      9 )     11 # 方式2:手动传入预计算向量(实际开发中推荐使用)     12 # collection.add(     13 #     embeddings = get_embeddings("RAG是什么?")     14 #     documents = ["文本1", "文本2"],     15 #     ids = ["id3", "id4"]     16 # )File ~\.conda\envs\chapter-1\Lib\site-packages\chromadb\api\models\Collection.py:92, in Collection.add(self, ids, embeddings, metadatas, documents, images, uris)     62 """Add embeddings to the data store.     63 Args:     64     ids: The ids of the embeddings you wish to add   (...)     80      81 """     83 add_request = self._validate_and_prepare_add_request(     84     ids=ids,     85     embeddings=embeddings,   (...)     89     uris=uris,     90 )---> 92 self._client._add(     93     collection_id=self.id,     94     ids=add_request["ids"],     95     embeddings=add_request["embeddings"],     96     metadatas=add_request["metadatas"],     97     documents=add_request["documents"],     98     uris=add_request["uris"],     99     tenant=self.tenant,    100     database=self.database,    101 )File ~\.conda\envs\chapter-1\Lib\site-packages\chromadb\api\rust.py:425, in RustBindingsAPI._add(self, ids, collection_id, embeddings, metadatas, documents, uris, tenant, database)    403 @override    404 def _add(    405     self,   (...)    413     database: str = DEFAULT_DATABASE,    414 ) -> bool:    415     self.product_telemetry_client.capture(    416         CollectionAddEvent(    417             collection_uuid=str(collection_id),   (...)    422         )    423     )--> 425     return self.bindings.add(    426         ids,    427         str(collection_id),    428         embeddings,    429         metadatas,    430         documents,    431         uris,    432         tenant,    433         database,    434     )NotFoundError: Error getting collection: Collection [ddc85405-fe34-46e1-abd2-17aa63e9dab3] does not exist.