File tree 3 files changed +3
-9
lines changed
3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ docker run \
14
14
-d \
15
15
--name trino-nlp-embeddings \
16
16
-p 8080:8080 \
17
- waseedockerhub9/trino-nlp-embeddings:0.53
17
+ waseedockerhub9/trino-nlp-embeddings:0.67
18
18
```
19
19
20
20
Then use your favourite SQL client to connect to Trino running at http://localhost:8080
Original file line number Diff line number Diff line change 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
5
1
sentence-transformers == 3.3.1
6
2
psycopg2-binary == 2.9.10
7
- scipy == 1.13 .1
3
+ scipy == 1.14 .1
Original file line number Diff line number Diff line change 13
13
#
14
14
15
15
import sys
16
- # import torch
17
16
import psycopg2
18
- # import numpy as np
19
17
from transformers import BertTokenizer , BertModel
20
18
from sentence_transformers import SentenceTransformer
21
19
from scipy .spatial .distance import cosine
22
20
23
21
# Define database connection parameters
24
22
DB_CONFIG = {
25
- "host" : "localhost" ,
23
+ "host" : "some-postgres" , # same name as your docker container running your postgres instance
26
24
"port" : "5432" ,
27
25
"database" : "postgres" ,
28
26
"user" : "postgres" ,
You can’t perform that action at this time.
0 commit comments