Skip to content

Commit ff390df

Browse files
committed
updated db config
1 parent 3e6abde commit ff390df

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ docker run \
1414
-d \
1515
--name trino-nlp-embeddings \
1616
-p 8080:8080 \
17-
waseedockerhub9/trino-nlp-embeddings:0.53
17+
waseedockerhub9/trino-nlp-embeddings:0.67
1818
```
1919

2020
Then use your favourite SQL client to connect to Trino running at http://localhost:8080

src/py_scripts/requirements.txt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# numpy==1.26.4
2-
# torch==2.0.1+cpu
3-
# -f https://download.pytorch.org/whl/cpu/torch_stable.html
4-
# git+https://github.com/huggingface/transformers
51
sentence-transformers==3.3.1
62
psycopg2-binary==2.9.10
7-
scipy==1.13.1
3+
scipy==1.14.1

src/py_scripts/script.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
#
1414

1515
import sys
16-
# import torch
1716
import psycopg2
18-
# import numpy as np
1917
from transformers import BertTokenizer, BertModel
2018
from sentence_transformers import SentenceTransformer
2119
from scipy.spatial.distance import cosine
2220

2321
# Define database connection parameters
2422
DB_CONFIG = {
25-
"host": "localhost",
23+
"host": "some-postgres", # same name as your docker container running your postgres instance
2624
"port": "5432",
2725
"database": "postgres",
2826
"user": "postgres",

0 commit comments

Comments
 (0)