1. Learn
  2. /
  3. 课程
  4. /
  5. 使用 Pinecone 的向量数据库与 Embeddings

Connected

道练习

创建 Pinecone 客户端

在整个课程中,您将编写 Python 代码,通过 Pinecone 的 Python 客户端与 Pinecone 交互。第一步,您需要创建自己的 Pinecone API 密钥。本课程练习中使用的 Pinecone API 密钥不会以任何形式被存储。

要创建密钥,您需要先在 https://www.pinecone.io/ 注册一个免费的 Pinecone 入门账户。然后,前往 API Keys 页面创建您的密钥。

Pinecone 的 API Keys 页面

说明

100 XP
  • 从 pinecone 导入用于创建 Pinecone 客户端的类。
  • 实例化 Pinecone 类,并传入您的 API 密钥。