biblicus 0.13.0__py3-none-any.whl → 0.14.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
biblicus/__init__.py CHANGED
@@ -27,4 +27,4 @@ __all__ = [
27
27
  "RetrievalRun",
28
28
  ]
29
29
 
30
- __version__ = "0.13.0"
30
+ __version__ = "0.14.0"
@@ -221,10 +221,15 @@ def _expand_component_budget(budget: QueryBudget, *, multiplier: int = 5) -> Que
221
221
  expanded_characters = (
222
222
  max_total_characters * multiplier if max_total_characters is not None else None
223
223
  )
224
+ expanded_max_items_per_source = (
225
+ budget.max_items_per_source * multiplier
226
+ if budget.max_items_per_source is not None
227
+ else None
228
+ )
224
229
  return QueryBudget(
225
230
  max_total_items=budget.max_total_items * multiplier,
226
231
  max_total_characters=expanded_characters,
227
- max_items_per_source=budget.max_items_per_source,
232
+ max_items_per_source=expanded_max_items_per_source,
228
233
  )
229
234
 
230
235
 
biblicus/context.py CHANGED
@@ -8,7 +8,7 @@ stable contract while context formatting remains an explicit policy surface.
8
8
 
9
9
  from __future__ import annotations
10
10
 
11
- from typing import Dict, List, Literal, Optional
11
+ from typing import Dict, List, Optional
12
12
 
13
13
  from pydantic import BaseModel, ConfigDict, Field
14
14
 
@@ -30,7 +30,7 @@ class ContextPackPolicy(BaseModel):
30
30
  model_config = ConfigDict(extra="forbid")
31
31
 
32
32
  join_with: str = Field(default="\n\n")
33
- ordering: Literal["rank", "score", "source"] = Field(default="rank")
33
+ ordering: str = Field(default="rank", min_length=1)
34
34
  include_metadata: bool = Field(default=False)
35
35
 
36
36
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: biblicus
3
- Version: 0.13.0
3
+ Version: 0.14.0
4
4
  Summary: Command line interface and Python library for corpus ingestion, retrieval, and evaluation.
5
5
  License: MIT
6
6
  Requires-Python: >=3.9
@@ -498,7 +498,8 @@ For detailed documentation including configuration options, performance characte
498
498
 
499
499
  For the retrieval pipeline overview and run artifacts, see `docs/RETRIEVAL.md`. For retrieval quality upgrades
500
500
  (tuned lexical baseline, reranking, hybrid retrieval), see `docs/RETRIEVAL_QUALITY.md`. For evaluation workflows
501
- and dataset formats, see `docs/RETRIEVAL_EVALUATION.md`.
501
+ and dataset formats, see `docs/RETRIEVAL_EVALUATION.md`. For a runnable walkthrough, use the retrieval evaluation lab
502
+ script (`scripts/retrieval_evaluation_lab.py`).
502
503
 
503
504
  ## Extraction backends
504
505
 
@@ -1,8 +1,8 @@
1
- biblicus/__init__.py,sha256=pD55sYei6AGGLcN1AWnpUY6-zPIPq1WxOp-sexOOlT0,496
1
+ biblicus/__init__.py,sha256=S14cBWrRwFcNLNmhl2viTvy2CXIfK8-vcBixsh5y49U,496
2
2
  biblicus/__main__.py,sha256=ipfkUoTlocVnrQDM69C7TeBqQxmHVeiWMRaT3G9rtnk,117
3
3
  biblicus/cli.py,sha256=cMoirLFPhTwftNuqaadajCcRUEz_FBaLkupjVxpAxO8,38403
4
4
  biblicus/constants.py,sha256=gAlEVJhxdFj-eWWJrlYbP7H1X3c5gwhrIBq9NQ1Vq_E,371
5
- biblicus/context.py,sha256=U7qkOwMdqNgYnqaC9hgQY0kv0R-6qcjV6bhXQl2WUkE,10215
5
+ biblicus/context.py,sha256=iXRFGpf_5YDPsDsm_iTK6nCvtUWDoYVI7op-l2QU3uA,10189
6
6
  biblicus/corpus.py,sha256=qSDnYJXhWlF2p_BbFLl6xtI53lIIPxwyKLLGLC432Sg,55612
7
7
  biblicus/crawl.py,sha256=n8rXBMnziBK9vtKQQCXYOpBzqsPCswj2PzVJUb370KY,6250
8
8
  biblicus/errors.py,sha256=uMajd5DvgnJ_-jq5sbeom1GV8DPUc-kojBaECFi6CsY,467
@@ -36,7 +36,7 @@ biblicus/analysis/schema.py,sha256=MCiAQJmijVk8iM8rOUYbzyaDwsMR-Oo86iZU5NCbDMM,4
36
36
  biblicus/analysis/topic_modeling.py,sha256=ZGXvm2MyU6plxz2FE1RQU-3bra6QZ-t8EJj8kG1TW0M,19438
37
37
  biblicus/backends/__init__.py,sha256=3HJY0oMm8pFFVGC4Z-dlPRHhIPVDdUzsa4IMjKP_9dI,1378
38
38
  biblicus/backends/base.py,sha256=Erfj9dXg0nkRKnEcNjHR9_0Ddb2B1NvbmRksVm_g1dU,1776
39
- biblicus/backends/hybrid.py,sha256=CXh6QrlE0RsTJjSlZRdtomLlILfkglBDQG3YVa8RpFU,10589
39
+ biblicus/backends/hybrid.py,sha256=FjCzrXdicbM-qVDM-_AHYTT8Gzvem1eZJaQUVKk_tMg,10753
40
40
  biblicus/backends/scan.py,sha256=hdNnQWqi5IH6j95w30BZHxLJ0W9PTaOkqfWJuxCCEMI,12478
41
41
  biblicus/backends/sqlite_full_text_search.py,sha256=VAn4fDdfiaS1Rn6zHlYz3E10_3vMU9P94QU8cL0l8Mk,24466
42
42
  biblicus/backends/vector.py,sha256=3RdxSBPb1kOX4Sfd4d1qXFW9ecuiRvGpOHadLCbeh1g,15183
@@ -58,9 +58,9 @@ biblicus/extractors/select_override.py,sha256=gSpffFmn1ux9pGtFvHD5Uu_LO8TmmJC4L_
58
58
  biblicus/extractors/select_smart_override.py,sha256=-sLMnNoeXbCB3dO9zflQq324eHuLbd6hpveSwduXP-U,6763
59
59
  biblicus/extractors/select_text.py,sha256=w0ATmDy3tWWbOObzW87jGZuHbgXllUhotX5XyySLs-o,3395
60
60
  biblicus/extractors/unstructured_text.py,sha256=l2S_wD_htu7ZHoJQNQtP-kGlEgOeKV_w2IzAC93lePE,3564
61
- biblicus-0.13.0.dist-info/licenses/LICENSE,sha256=lw44GXFG_Q0fS8m5VoEvv_xtdBXK26pBcbSPUCXee_Q,1078
62
- biblicus-0.13.0.dist-info/METADATA,sha256=Ae0gttdvOggyE1vQVab4IOSmbx-JklxzvBZJ_3UyxIA,27979
63
- biblicus-0.13.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
64
- biblicus-0.13.0.dist-info/entry_points.txt,sha256=BZmO4H8Uz00fyi1RAFryOCGfZgX7eHWkY2NE-G54U5A,47
65
- biblicus-0.13.0.dist-info/top_level.txt,sha256=sUD_XVZwDxZ29-FBv1MknTGh4mgDXznGuP28KJY_WKc,9
66
- biblicus-0.13.0.dist-info/RECORD,,
61
+ biblicus-0.14.0.dist-info/licenses/LICENSE,sha256=lw44GXFG_Q0fS8m5VoEvv_xtdBXK26pBcbSPUCXee_Q,1078
62
+ biblicus-0.14.0.dist-info/METADATA,sha256=caVN-IcUlwaRRdid40XN6FBcdJmFkMBldyW-ySf-6pk,28088
63
+ biblicus-0.14.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
64
+ biblicus-0.14.0.dist-info/entry_points.txt,sha256=BZmO4H8Uz00fyi1RAFryOCGfZgX7eHWkY2NE-G54U5A,47
65
+ biblicus-0.14.0.dist-info/top_level.txt,sha256=sUD_XVZwDxZ29-FBv1MknTGh4mgDXznGuP28KJY_WKc,9
66
+ biblicus-0.14.0.dist-info/RECORD,,