File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
services :
2
2
db :
3
- hostname : 127.0.0.1
4
3
image : pgvector/pgvector:pg17
5
4
ports :
6
- - 5432:5432
5
+ - 5433:5432
6
+ networks :
7
+ - trident
7
8
restart : always
8
9
environment :
9
10
- POSTGRES_DB=verceldb
Original file line number Diff line number Diff line change @@ -5,15 +5,14 @@ import {
5
5
import { VercelPostgres } from "@langchain/community/vectorstores/vercel_postgres" ;
6
6
import { Embeddings } from "@langchain/core/embeddings" ;
7
7
import pg from "pg" ;
8
- import { PoolConfig } from "pg" ;
9
8
10
9
export const getPGVectorStore = async (
11
10
embeddings : Embeddings ,
12
11
tableName : string
13
12
) => {
14
13
if ( process . env . USE_POSTGRES === "1" ) {
15
14
const reusablePool = new pg . Pool ( {
16
- host : "127.0.0.1 " ,
15
+ host : "db " ,
17
16
port : 5432 ,
18
17
user : "default" ,
19
18
password : "password" ,
You can’t perform that action at this time.
0 commit comments