mirror of
https://github.com/hwchase17/langchain
synced 2024-10-31 15:20:26 +00:00
25 lines
560 B
Plaintext
25 lines
560 B
Plaintext
|
# Postgres Embedding
|
||
|
|
||
|
> [pg_embedding](https://github.com/neondatabase/pg_embedding) is an open-source package for
|
||
|
> vector similarity search using `Postgres` and the `Hierarchical Navigable Small Worlds`
|
||
|
> algorithm for approximate nearest neighbor search.
|
||
|
|
||
|
## Installation and Setup
|
||
|
|
||
|
We need to install several python packages.
|
||
|
|
||
|
```bash
|
||
|
pip install openai
|
||
|
pip install psycopg2-binary
|
||
|
pip install tiktoken
|
||
|
```
|
||
|
|
||
|
## Vector Store
|
||
|
|
||
|
See a [usage example](/docs/integrations/vectorstores/pgembedding).
|
||
|
|
||
|
```python
|
||
|
from langchain.vectorstores import PGEmbedding
|
||
|
```
|
||
|
|