You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51-13Lines changed: 51 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
10
10
The `langchain-postgres` package implementations of core LangChain abstractions using `Postgres`.
11
11
12
-
The package is released under the MIT license.
12
+
The package is released under the MIT license.
13
13
14
14
Feel free to use the abstraction as provided or else modify them / extend them as appropriate for your own application.
15
15
@@ -23,22 +23,65 @@ The package currently only supports the [psycogp3](https://www.psycopg.org/psyco
23
23
pip install -U langchain-postgres
24
24
```
25
25
26
-
## Change Log
26
+
## Usage
27
27
28
-
0.0.6:
29
-
- Remove langgraph as a dependency as it was causing dependency conflicts.
30
-
- Base interface for checkpointer changed in langgraph, so existing implementation would've broken regardless.
28
+
### Vectorstore
31
29
32
-
## Usage
30
+
> [!NOTE]
31
+
> See example for the [PGVector vectorstore here](https://github.com/langchain-ai/langchain-postgres/blob/main/examples/vectorstore.ipynb)
32
+
`PGVector` is being deprecated. Please migrate to `PGVectorStore`.
33
+
`PGVectorStore` is used for improved performance and manageability.
34
+
See the [migration guide](https://github.com/langchain-ai/langchain-postgres/blob/main/examples/migrate_pgvector_to_pgvectorstore.md) for details on how to migrate from `PGVector` to `PGVectorStore`.
35
+
36
+
> [!TIP]
37
+
> All synchronous functions have corresponding asynchronous functions
38
+
39
+
```python
40
+
from langchain_postgres import PGEngine, PGVectorStore
41
+
from langchain_core.embeddings import DeterministicFakeEmbedding
0 commit comments