rag-lab: publishable state (license, no logs, honest metrics)

This commit is contained in:
MagentaDolphin
2026-10-29 01:45:53 +07:00
parent cf04972e80
commit dccc338ab1
5 changed files with 24 additions and 49 deletions
+2
View File
@@ -4,3 +4,5 @@ data/
results/
.env
*.zip
*.log
.pytest_cache/
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 Danil Polyakov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+1 -1
View File
@@ -16,7 +16,7 @@ Benchmark: [BEIR SciFact](https://github.com/allenai/beir) — 5,183 scientific
| lexical (BM25, k1=1.2 b=0.75) | 0.517 | 0.759 | 0.614 | 0.645 | 66.2 | 87.0 |
| dense (all-MiniLM-L6-v2, cosine, HNSW) | 0.484 | 0.817 | 0.618 | 0.662 | 39.8 | 62.8 |
| hybrid (reciprocal rank fusion) | 0.540 | 0.830 | 0.654 | 0.691 | 114.1 | 264.9 |
| hybrid + cross-encoder rerank | _running_ | _running_ | _running_ | _running_ | _running_ | _running_ |
| hybrid + cross-encoder rerank | not measured | not measured | not measured | not measured | not measured | not measured |
Numbers are produced by `scripts/evaluate.py` and stored in `results/eval.json`. Nothing in the
table is written by hand. 300 of 339 test queries were used (the rest have no corpus document to
-45
View File
@@ -1,45 +0,0 @@
INFO: Started server process [617444]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8088 (Press CTRL+C to quit)
INFO: 127.0.0.1:58260 - "GET /health HTTP/1.1" 200 OK
INFO: 127.0.0.1:58274 - "GET /search?q=sporulation+efficiency+Bacillus&mode=hybrid&k=3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40100 - "GET /search?q=Bacillus+subtilis+clpC+sporulation+efficiency&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:43310 - "GET /search?q=Bacillus+subtilis+clpC+sporulation+efficiency&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41588 - "GET /search?q=Bacillus+subtilis+clpC+sporulation+efficiency&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50252 - "GET /search?q=Bacillus+subtilis+clpC+sporulation+efficiency&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38996 - "GET /search?q=Commelina+yellow+mottle+virus+ComYMV+7489+bp+%22We+have+demonstrated+that+a+construct+containing+1%22&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59558 - "GET /search?q=%22To+identify+components+of+this+pathway%2C+we+performed+an+RNAi-based+kinome+screen+in+human+cells%22&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:57100 - "GET /search?q=%22maternal+diethylstilbestrol+treatment%22+birth+weight+breast+cancer&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49798 - "GET /search?q=%22In+vitro+and+ex+vivo+analyses+demonstrate+that+C%22&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:47978 - "GET /search?q=%22early+and+direct+cross-modal+phase+modulation%22+neurophysiology+hypothesis&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:43514 - "GET /search?q=DdrB+Deinococcus+radiodurans+alternative+SSB+crucial+for+recovery+following+DNA+damage&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37170 - "GET /search?q=%223%2C000+g%22+%22%3C3%2C000+g%22+birth+weight+breast+cancer+effect+estimate&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:33126 - "GET /search?q=metastatic+colorectal+cancer+elderly+single+agent+fluoropyrimidines+oxaliplatin-based+chemotherapy+quality+of+life&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36074 - "GET /search?q=Cas9-induced+double+strand+breaks+repair+error+prone+human+DNA&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40596 - "GET /search?q=%22It+is+therefore+fitting+that+we+publish+such+a+paper%22&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59080 - "GET /search?q=%22Yet+how+the+activity+of+the+SUMO+ligase+is+controlled+remains+unknown%22&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:60316 - "GET /search?q=Bacillus+subtilis+clpC+sporulation+efficiency&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:57624 - "GET /search?q=Commelina+yellow+mottle+virus+ComYMV+7489+bp+%22We+have+demonstrated+that+a+construct+containing+1%22&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:35632 - "GET /search?q=%22To+identify+components+of+this+pathway%2C+we+performed+an+RNAi-based+kinome+screen+in+human+cells%22&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:33770 - "GET /search?q=%22maternal+diethylstilbestrol+treatment%22+birth+weight+breast+cancer&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54448 - "GET /search?q=%22In+vitro+and+ex+vivo+analyses+demonstrate+that+C%22&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44750 - "GET /search?q=%22early+and+direct+cross-modal+phase+modulation%22+neurophysiology+hypothesis&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44762 - "GET /search?q=DdrB+Deinococcus+radiodurans+alternative+SSB+crucial+for+recovery+following+DNA+damage&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:60404 - "GET /search?q=%223%2C000+g%22+%22%3C3%2C000+g%22+birth+weight+breast+cancer+effect+estimate&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:45942 - "GET /search?q=metastatic+colorectal+cancer+elderly+single+agent+fluoropyrimidines+oxaliplatin-based+chemotherapy+quality+of+life&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:45348 - "GET /search?q=Cas9-induced+double+strand+breaks+repair+error+prone+human+DNA&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40834 - "GET /search?q=%22It+is+therefore+fitting+that+we+publish+such+a+paper%22&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40838 - "GET /search?q=%22Yet+how+the+activity+of+the+SUMO+ligase+is+controlled+remains+unknown%22&mode=hybrid&k=5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51132 - "GET /search?q=Bacillus+subtilis+clpC+sporulation+efficiency&mode=hybrid&k=8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49436 - "GET /search?q=Commelina+yellow+mottle+virus+ComYMV+7489+bp+%22We+have+demonstrated+that+a+construct+containing+1%22&mode=hybrid&k=8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49452 - "GET /search?q=%22To+identify+components+of+this+pathway%2C+we+performed+an+RNAi-based+kinome+screen+in+human+cells%22&mode=hybrid&k=8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38800 - "GET /search?q=%22maternal+diethylstilbestrol+treatment%22+birth+weight+breast+cancer&mode=hybrid&k=8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38806 - "GET /search?q=%22In+vitro+and+ex+vivo+analyses+demonstrate+that+C%22&mode=hybrid&k=8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:47674 - "GET /search?q=%22early+and+direct+cross-modal+phase+modulation%22+neurophysiology+hypothesis&mode=hybrid&k=8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:43830 - "GET /search?q=DdrB+Deinococcus+radiodurans+alternative+SSB+crucial+for+recovery+following+DNA+damage&mode=hybrid&k=8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51940 - "GET /search?q=%223%2C000+g%22+%22%3C3%2C000+g%22+birth+weight+breast+cancer+effect+estimate&mode=hybrid&k=8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51956 - "GET /search?q=metastatic+colorectal+cancer+elderly+single+agent+fluoropyrimidines+oxaliplatin-based+chemotherapy+quality+of+life&mode=hybrid&k=8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36746 - "GET /search?q=Cas9-induced+double+strand+breaks+repair+error+prone+human+DNA&mode=hybrid&k=8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36760 - "GET /search?q=%22It+is+therefore+fitting+that+we+publish+such+a+paper%22&mode=hybrid&k=8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36764 - "GET /search?q=%22Yet+how+the+activity+of+the+SUMO+ligase+is+controlled+remains+unknown%22&mode=hybrid&k=8 HTTP/1.1" 200 OK
-3
View File
@@ -1,3 +0,0 @@
lexical {"recall@1": 0.5167, "recall@5": 0.7164, "recall@10": 0.7587, "mrr@10": 0.6135, "ndcg@10": 0.6452, "p50_ms": 66.2, "p95_ms": 87.0, "queries": 300}
dense {"recall@1": 0.4837, "recall@5": 0.7328, "recall@10": 0.8167, "mrr@10": 0.6179, "ndcg@10": 0.6622, "p50_ms": 39.8, "p95_ms": 62.8, "queries": 300}
hybrid {"recall@1": 0.5401, "recall@5": 0.7459, "recall@10": 0.8304, "mrr@10": 0.6542, "ndcg@10": 0.6909, "p50_ms": 114.1, "p95_ms": 264.9, "queries": 300}