mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
28 lines
546 B
Markdown
28 lines
546 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`
|
||
|
- `PINECONE_ENVIRONMENT`
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
The `Pinecone` class exposes the connection to the Pinecone vector store.
|
||
|
|
||
|
```python
|
||
|
from langchain_pinecone import Pinecone
|
||
|
|
||
|
embeddings = ... # use a LangChain Embeddings class
|
||
|
|
||
|
vectorstore = Pinecone(embeddings=embeddings)
|
||
|
```
|