Skip to content

Commit

Permalink
Update pinecone-document-store.md (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
masci authored Feb 16, 2024
1 parent beeb177 commit 669eb08
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions integrations/pinecone-document-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ To use Pinecone as your data storage for your Haystack LLM pipelines, you must h
from haystack_integrations.document_stores.pinecone import PineconeDocumentStore


document_store = PineconeDocumentStore(api_key='YOUR_API_KEY',
similarity="cosine",
dimension=768)
# Make sure you have the PINECONE_API_KEY environment variable set
document_store = PineconeDocumentStore(similarity="cosine", dimension=768)
```

#### Writing Documents to PineconeDocumentStore
Expand All @@ -80,9 +79,8 @@ from haystack.components.preprocessors import DocumentSplitter
from haystack_integrations.document_stores.pinecone import PineconeDocumentStore


document_store = PineconeDocumentStore(api_key="YOUR_API_KEY",
environment="gcp-starter",
dimension=768)
# Make sure you have the PINECONE_API_KEY environment variable set
document_store = PineconeDocumentStore(environment="gcp-starter", dimension=768)

indexing = Pipeline()
indexing.add_component("converter", MarkdownToDocument())
Expand All @@ -109,8 +107,8 @@ from haystack_integrations.document_stores.pinecone import PineconeDocumentStore
from haystack_integrations.components.retrievers.pinecone import PineconeEmbeddingRetriever


document_store = PineconeDocumentStore(api_key='YOUR_API_KEY',
dimension=768)
# Make sure you have the PINECONE_API_KEY environment variable set
document_store = PineconeDocumentStore(dimension=768)

prompt_template = """Answer the following query based on the provided context. If the context does
not include an answer, reply with 'I don't know'.\n
Expand Down

0 comments on commit 669eb08

Please sign in to comment.