Configure your R2R Postgres database
pgvector
extension and ts_rank
to implement customizable hybrid search.
database
section in your r2r.toml
file and set corresponding environment variables or provide the settings directly in the configuration file.
database
section in your r2r.toml
file:pgvector
extension to enable efficient vector similarity search. This is crucial for semantic search operations. The collection.py
file defines a custom Vector
type that interfaces with pgvector
:
ts_rank
and websearch_to_tsquery
.pgvector
.collection.py
file includes methods for building complex SQL queries that implement this hybrid search approach.