Skip to content

Commit 89e50db

Browse files
committed
fix mistake
1 parent 0961df7 commit 89e50db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docker-compose.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
services:
22
db:
3-
hostname: 127.0.0.1
43
image: pgvector/pgvector:pg17
54
ports:
6-
- 5432:5432
5+
- 5433:5432
6+
networks:
7+
- trident
78
restart: always
89
environment:
910
- POSTGRES_DB=verceldb

src/utils/trident/getPGVectorStore.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ import {
55
import { VercelPostgres } from "@langchain/community/vectorstores/vercel_postgres";
66
import { Embeddings } from "@langchain/core/embeddings";
77
import pg from "pg";
8-
import { PoolConfig } from "pg";
98

109
export const getPGVectorStore = async (
1110
embeddings: Embeddings,
1211
tableName: string
1312
) => {
1413
if (process.env.USE_POSTGRES === "1") {
1514
const reusablePool = new pg.Pool({
16-
host: "127.0.0.1",
15+
host: "db",
1716
port: 5432,
1817
user: "default",
1918
password: "password",

0 commit comments

Comments
 (0)