Skip to content

Commit

Permalink
pinecone docstring (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchase17 authored Jan 19, 2023
1 parent d54fd20 commit 052c361
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions langchain/vectorstores/pinecone.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ class Pinecone(VectorStore):
Example:
.. code-block:: python
import pinecone
from langchain.vectorstores import Pinecone
vectorstore = Pinecone(pinecone_index, embedding_function, "text_key")
from langchain.embeddings.openai import OpenAIEmbeddings
import pinecone
pinecone.init(api_key="***", environment="us-west1-gcp")
index = pinecone.Index("langchain-demo")
embeddings = OpenAIEmbeddings()
vectorstore = Pinecone(index, embeddings.embed_query, "text")
"""

def __init__(
Expand Down

0 comments on commit 052c361

Please sign in to comment.