llm-join 0.2.7__tar.gz → 0.2.8__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llm-join
3
- Version: 0.2.7
3
+ Version: 0.2.8
4
4
  Summary: Fuzzy join DataFrames using LLM scoring and embedding retrieval
5
5
  License: MIT
6
6
  Keywords: entity-resolution,fuzzy-join,llm,nlp,pandas
@@ -17,4 +17,4 @@ except ImportError as e:
17
17
  from llm_join.join import fuzzy_join
18
18
 
19
19
  __all__ = ["fuzzy_join"]
20
- __version__ = "0.2.7"
20
+ __version__ = "0.2.8"
@@ -94,6 +94,10 @@ def fuzzy_join(
94
94
  break
95
95
 
96
96
  candidates = [c for c, _ in candidates_with_scores]
97
+ candidates_debug = [
98
+ {"candidate": c, "embed_score": round(s, 4)}
99
+ for c, s in candidates_with_scores
100
+ ]
97
101
  results = scorer.score(left_val, candidates, cfg.context_str, threshold=cfg.threshold)
98
102
  llm_call_count += 1
99
103
  if results is None:
@@ -106,11 +110,11 @@ def fuzzy_join(
106
110
  reasoning="LLM failed — embed rank-0 fallback used",
107
111
  embed_rank=0,
108
112
  match_method="embed_fallback",
109
- candidates=candidates_with_scores,
113
+ candidates=candidates_debug,
110
114
  ))
111
115
  elif results:
112
116
  for r in results:
113
- r.candidates = candidates_with_scores
117
+ r.candidates = candidates_debug
114
118
  matches.extend(results)
115
119
 
116
120
  return merger.merge(df1, df2, left_col, right_col, matches, how=how, return_reasoning=return_reasoning)
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "llm-join"
7
- version = "0.2.7"
7
+ version = "0.2.8"
8
8
  description = "Fuzzy join DataFrames using LLM scoring and embedding retrieval"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes