Configuring VectorChord-BM25
To configure VectorChord-BM25, you need to enable the extension in your Postgres database and perform additional setup.
Preload the library:
The
pg_tokenizerlibrary must be loaded at server start. Addpg_tokenizerto the list of libraries in yourpostgresql.conffile:# Edit your postgresql.conf shared_preload_libraries = 'pg_tokenizer,$libdir/dbms_pipe,$libdir/edb_gen,...'
Restart the Postgres server to apply the changes.
Configure the search path:
To ensure Postgres can locate the necessary catalogs for BM25 and tokenization, update your
search_path:/usr/edb/as16/bin/psql postgres -c 'SET search_path TO "$user", public, tokenizer_catalog, bm25_catalog;'
Create the extensions:
To enable
VectorChord-BM25, create the extension in the database:CREATE EXTENSION IF NOT EXISTS pg_tokenizer CASCADE; CREATE EXTENSION IF NOT EXISTS vchord_bm25 CASCADE;
After enabling the extension, you can use the functionality provided by
VectorChord-BM25.
Could this page be better? Report a problem or suggest an addition!