File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 66import psycopg
77import warnings
88
9- # ignore warnings from colbert
10- warnings .filterwarnings ('ignore' )
11-
129conn = psycopg .connect (dbname = 'pgvector_example' , autocommit = True )
1310
1411conn .execute ('CREATE EXTENSION IF NOT EXISTS vector' )
3835$$ LANGUAGE SQL
3936""" )
4037
38+ # ignore warnings from colbert
39+ warnings .filterwarnings ('ignore' )
40+
4141config = ColBERTConfig (doc_maxlen = 220 , query_maxlen = 32 )
4242checkpoint = Checkpoint ('colbert-ir/colbertv2.0' , colbert_config = config , verbose = 0 )
4343
Original file line number Diff line number Diff line change 44import psycopg
55import warnings
66
7- # ignore warnings from colbert
8- warnings .filterwarnings ('ignore' )
9-
107conn = psycopg .connect (dbname = 'pgvector_example' , autocommit = True )
118
129conn .execute ('CREATE EXTENSION IF NOT EXISTS vector' )
3229$$ LANGUAGE SQL
3330""" )
3431
32+ # ignore warnings from colbert
33+ warnings .filterwarnings ('ignore' )
34+
3535config = ColBERTConfig (doc_maxlen = 220 , query_maxlen = 32 )
3636checkpoint = Checkpoint ('colbert-ir/colbertv2.0' , colbert_config = config , verbose = 0 )
3737
You can’t perform that action at this time.
0 commit comments