mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-06 13:33:37 +00:00
Format Templates (#12396)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import pinecone
|
||||
from langchain.vectorstores import Pinecone
|
||||
from langchain.embeddings import OpenAIEmbeddings
|
||||
from langchain.vectorstores import Pinecone
|
||||
|
||||
pinecone.init(api_key="...",environment="...")
|
||||
pinecone.init(api_key="...", environment="...")
|
||||
|
||||
all_documents = {
|
||||
"doc1": "Climate change and economic impact.",
|
||||
@@ -14,7 +14,9 @@ all_documents = {
|
||||
"doc7": "Climate change: The science and models.",
|
||||
"doc8": "Global warming: A subset of climate change.",
|
||||
"doc9": "How climate change affects daily weather.",
|
||||
"doc10": "The history of climate change activism."
|
||||
"doc10": "The history of climate change activism.",
|
||||
}
|
||||
|
||||
Pinecone.from_texts(list(all_documents.values()), OpenAIEmbeddings(), index_name='rag-fusion')
|
||||
Pinecone.from_texts(
|
||||
list(all_documents.values()), OpenAIEmbeddings(), index_name="rag-fusion"
|
||||
)
|
||||
|
Reference in New Issue
Block a user