mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
27 lines
554 B
Markdown
27 lines
554 B
Markdown
# langchain-pinecone
|
|
|
|
This package contains the LangChain integration with Pinecone.
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
pip install -U langchain-pinecone
|
|
```
|
|
|
|
And you should configure credentials by setting the following environment variables:
|
|
|
|
- `PINECONE_API_KEY`
|
|
- `PINECONE_INDEX_NAME`
|
|
|
|
## Usage
|
|
|
|
The `PineconeVectorStore` class exposes the connection to the Pinecone vector store.
|
|
|
|
```python
|
|
from langchain_pinecone import PineconeVectorStore
|
|
|
|
embeddings = ... # use a LangChain Embeddings class
|
|
|
|
vectorstore = PineconeVectorStore(embeddings=embeddings)
|
|
```
|