Skip to content

Commit

Permalink
[#69] Correct backward threshold logic
Browse files Browse the repository at this point in the history
  • Loading branch information
uogbuji committed Feb 20, 2024
1 parent b2792fa commit 19128df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pylib/embedding/pgvector_data_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@

QUERY_DATA_TABLE = QUERY_TABLE_BASE.format(extra_fields='')

TITLE_WHERE_CLAUSE = 'title = {query_title} -- Equals operator \n'
TITLE_WHERE_CLAUSE = 'title = {query_title} -- Equals operator\n'

PAGE_NUMBERS_WHERE_CLAUSE = 'page_numbers && {query_page_numbers} -- Overlap operator \n'

TAGS_WHERE_CLAUSE_CONJ = 'tags @> {tags} -- Contains operator \n'
TAGS_WHERE_CLAUSE_DISJ = 'tags && {tags} -- Overlap operator \n'
TAGS_WHERE_CLAUSE_CONJ = 'tags @> {tags} -- Contains operator\n'
TAGS_WHERE_CLAUSE_DISJ = 'tags && {tags} -- Overlap operator\n'

THRESHOLD_WHERE_CLAUSE = '{query_threshold} >= cosine_similarity \n'
THRESHOLD_WHERE_CLAUSE = 'cosine_similarity >= {query_threshold}\n'
# ------ SQL queries ---------------------------------------------------------------------------------------------------


Expand Down

0 comments on commit 19128df

Please sign in to comment.