File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 6
6
import psycopg
7
7
import warnings
8
8
9
- # ignore warnings from colbert
10
- warnings .filterwarnings ('ignore' )
11
-
12
9
conn = psycopg .connect (dbname = 'pgvector_example' , autocommit = True )
13
10
14
11
conn .execute ('CREATE EXTENSION IF NOT EXISTS vector' )
38
35
$$ LANGUAGE SQL
39
36
""" )
40
37
38
+ # ignore warnings from colbert
39
+ warnings .filterwarnings ('ignore' )
40
+
41
41
config = ColBERTConfig (doc_maxlen = 220 , query_maxlen = 32 )
42
42
checkpoint = Checkpoint ('colbert-ir/colbertv2.0' , colbert_config = config , verbose = 0 )
43
43
Original file line number Diff line number Diff line change 4
4
import psycopg
5
5
import warnings
6
6
7
- # ignore warnings from colbert
8
- warnings .filterwarnings ('ignore' )
9
-
10
7
conn = psycopg .connect (dbname = 'pgvector_example' , autocommit = True )
11
8
12
9
conn .execute ('CREATE EXTENSION IF NOT EXISTS vector' )
32
29
$$ LANGUAGE SQL
33
30
""" )
34
31
32
+ # ignore warnings from colbert
33
+ warnings .filterwarnings ('ignore' )
34
+
35
35
config = ColBERTConfig (doc_maxlen = 220 , query_maxlen = 32 )
36
36
checkpoint = Checkpoint ('colbert-ir/colbertv2.0' , colbert_config = config , verbose = 0 )
37
37
You can’t perform that action at this time.
0 commit comments