Spaces:
Sleeping
Sleeping
Commit ·
06249fb
1
Parent(s): 0bb6123
style: hide distance scores from /sources output
Browse filesDistance scores are an internal metric not useful for end users.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- app_cli.py +1 -3
app_cli.py
CHANGED
|
@@ -102,9 +102,7 @@ def _format_sources(retrieval_result: dict) -> str:
|
|
| 102 |
source = meta.get("source", "unknown")
|
| 103 |
page = meta.get("page", "?")
|
| 104 |
dataset = meta.get("dataset", "")
|
| 105 |
-
|
| 106 |
-
dist_str = f" (distance: {dist:.3f})" if dist is not None else ""
|
| 107 |
-
lines.append(f" [{i}] {source}, page {page} [{dataset}]{dist_str}")
|
| 108 |
|
| 109 |
if web_results:
|
| 110 |
if db_results:
|
|
|
|
| 102 |
source = meta.get("source", "unknown")
|
| 103 |
page = meta.get("page", "?")
|
| 104 |
dataset = meta.get("dataset", "")
|
| 105 |
+
lines.append(f" [{i}] {source}, page {page} [{dataset}]")
|
|
|
|
|
|
|
| 106 |
|
| 107 |
if web_results:
|
| 108 |
if db_results:
|