mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-06 05:25:04 +00:00
pinecone[patch], docs: PineconeVectorStore, release 0.0.3 (#17896)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from langchain_community.embeddings import OpenAIEmbeddings
|
||||
from langchain_community.vectorstores import Pinecone
|
||||
from langchain_pinecone import PineconeVectorStore
|
||||
|
||||
all_documents = {
|
||||
"doc1": "Climate change and economic impact.",
|
||||
@@ -14,6 +14,6 @@ all_documents = {
|
||||
"doc10": "The history of climate change activism.",
|
||||
}
|
||||
|
||||
Pinecone.from_texts(
|
||||
PineconeVectorStore.from_texts(
|
||||
list(all_documents.values()), OpenAIEmbeddings(), index_name="rag-fusion"
|
||||
)
|
||||
|
Reference in New Issue
Block a user