From 1b4e653170ef8d6fc0ff1cefbb32f02d282e3de9 Mon Sep 17 00:00:00 2001 From: Thiago Soares Laitz Date: Thu, 24 Mar 2022 08:14:40 -0300 Subject: [PATCH] Changes bm25 k1 and b parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reading the Pyserini documentation I realized that maybe these values ​​are swapped --- api/app/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app/settings.py b/api/app/settings.py index 4c42962..1411f14 100644 --- a/api/app/settings.py +++ b/api/app/settings.py @@ -19,8 +19,8 @@ class Settings(BaseSettings): index_path: str = 'index/lucene-index-cord19-paragraph' schema_path: str = 'schema/cord19.json' max_docs: int = 96 - bm25_k1: float = 0.4 - bm25_b: float = 0.9 + bm25_k1: float = 0.9 + bm25_b: float = 0.4 rm3: bool = False rm3_fb_terms: int = 10 rm3_fb_docs: int = 10