Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis committed Feb 21, 2024
1 parent 3ec4fb8 commit b50e211
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"source": [
"from langchain.schema import Document\n",
"from langchain_openai import OpenAIEmbeddings\n",
"from langchain_pinecone import PineconeVectorStore\n",
"\n",
"embeddings = OpenAIEmbeddings()\n",
"# create new index\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/integrations/vectorstores/pinecone.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
}
],
"source": [
"vectorstore = Pinecone(index_name=index_name, embedding=embeddings)\n",
"vectorstore = PineconeVectorStore(index_name=index_name, embedding=embeddings)\n",
"\n",
"vectorstore.add_texts([\"More text!\"])"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/use_cases/question_answering/per_user.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
],
"source": [
"embeddings = OpenAIEmbeddings()\n",
"vectorstore = Pinecone(index_name=\"test-example\", embedding=embeddings)\n",
"vectorstore = PineconeVectorStore(index_name=\"test-example\", embedding=embeddings)\n",
"\n",
"vectorstore.add_texts([\"i worked at kensho\"], namespace=\"harrison\")\n",
"vectorstore.add_texts([\"i worked at facebook\"], namespace=\"ankush\")"
Expand Down

0 comments on commit b50e211

Please sign in to comment.