@graphorin/reranker-llm 0.6.0 → 0.6.1
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.
- package/CHANGELOG.md +10 -0
- package/README.md +3 -3
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/package.js +6 -0
- package/dist/package.js.map +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @graphorin/reranker-llm
|
|
2
2
|
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#142](https://github.com/o-stepper/graphorin/pull/142) [`436d6ca`](https://github.com/o-stepper/graphorin/commit/436d6ca5ebbd16df094e915682d3915c279a8430) Thanks [@o-stepper](https://github.com/o-stepper)! - Version constants and version-bearing strings now derive from each package's manifest at build time (`VERSION = pkg.version`; writer ids, client/server info, OTLP framework attributes, build-info metrics interpolate it). No behavioral change at the current version: the rendered strings are byte-identical. A release bump no longer edits source; the new `check-version-consistency` gate fails any reintroduced hardcoded framework version.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`436d6ca`](https://github.com/o-stepper/graphorin/commit/436d6ca5ebbd16df094e915682d3915c279a8430)]:
|
|
10
|
+
- @graphorin/core@0.6.1
|
|
11
|
+
- @graphorin/memory@0.6.1
|
|
12
|
+
|
|
3
13
|
## 0.6.0
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
> `Promise.all()`. Implements the `ReRanker` contract from
|
|
8
8
|
> `@graphorin/memory/search`.
|
|
9
9
|
>
|
|
10
|
-
> Project Graphorin · v0.6.
|
|
10
|
+
> Project Graphorin · v0.6.1 · MIT License · © 2026 Oleksiy Stepurenko ·
|
|
11
11
|
> <https://github.com/o-stepper/graphorin>
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
## Status
|
|
16
16
|
|
|
17
|
-
- **Published:** v0.6.
|
|
17
|
+
- **Published:** v0.6.1 (optional sub-pack)
|
|
18
18
|
- **Default temperature:** `0` (deterministic).
|
|
19
19
|
- **Default batch size:** `5` parallel provider calls.
|
|
20
20
|
- **Default max score:** `10` (operator-tunable; finer scales improve
|
|
@@ -130,4 +130,4 @@ MIT © 2026 Oleksiy Stepurenko
|
|
|
130
130
|
|
|
131
131
|
---
|
|
132
132
|
|
|
133
|
-
**Project Graphorin** · v0.6.
|
|
133
|
+
**Project Graphorin** · v0.6.1 · MIT License · © 2026 Oleksiy Stepurenko · <https://github.com/o-stepper/graphorin>
|
package/dist/index.d.ts
CHANGED
|
@@ -32,8 +32,7 @@ import { LlmReRanker, LlmRerankerOptions, RERANKER_ID, createLlmReranker, mergeA
|
|
|
32
32
|
*
|
|
33
33
|
* @packageDocumentation
|
|
34
34
|
*/
|
|
35
|
-
|
|
36
|
-
declare const VERSION = "0.6.0";
|
|
35
|
+
declare const VERSION: string;
|
|
37
36
|
//#endregion
|
|
38
37
|
export { LlmReRanker, type LlmRerankerOptions, type PassageExtractor, RERANKER_ID, type ScoringPrompt, type ScoringPromptBuilder, type ScoringPromptInput, VERSION, createLlmReranker, defaultPassageExtractor, defaultScoringPrompt, mergeAndDedupe, normalizeScore, parseIntegerResponse };
|
|
39
38
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAgCA;;;;;;;;;;;;;;;;;;;;;;;cAAa"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { version } from "./package.js";
|
|
1
2
|
import { defaultScoringPrompt } from "./scoring-prompt.js";
|
|
2
3
|
import { defaultPassageExtractor } from "./text-extraction.js";
|
|
3
4
|
import { LlmReRanker, RERANKER_ID, createLlmReranker, mergeAndDedupe, normalizeScore, parseIntegerResponse } from "./reranker.js";
|
|
@@ -31,8 +32,8 @@ import { LlmReRanker, RERANKER_ID, createLlmReranker, mergeAndDedupe, normalizeS
|
|
|
31
32
|
*
|
|
32
33
|
* @packageDocumentation
|
|
33
34
|
*/
|
|
34
|
-
/** Canonical version constant
|
|
35
|
-
const VERSION =
|
|
35
|
+
/** Canonical version constant, derived from `package.json` at build time. */
|
|
36
|
+
const VERSION = version;
|
|
36
37
|
|
|
37
38
|
//#endregion
|
|
38
39
|
export { LlmReRanker, RERANKER_ID, VERSION, createLlmReranker, defaultPassageExtractor, defaultScoringPrompt, mergeAndDedupe, normalizeScore, parseIntegerResponse };
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * @graphorin/reranker-llm - LLM-as-reranker adapter for the Graphorin\n * framework.\n *\n * Asks the configured `Provider` to score `(query, passage)` pairs\n * against a deterministic scoring prompt; runs scoring in parallel\n * batches via `Promise.all()`. Drop-in replacement for the built-in\n * `RRFReranker`:\n *\n * ```ts\n * import { createMemory } from '@graphorin/memory';\n * import { createLlmReranker } from '@graphorin/reranker-llm';\n *\n * const memory = createMemory({\n * store,\n * embedder,\n * reranker: createLlmReranker({ provider }),\n * });\n * ```\n *\n * Defaults: `temperature: 0`, `batchSize: 5`, `maxScore: 10`. The\n * default scoring prompt is English; operators that target a\n * different locale pass `scoringPrompt: <localised builder>` per the\n * Phase 16 spec (the package's defaults are locale-agnostic, not\n * locale-privileging).\n *\n * @packageDocumentation\n */\n\n/** Canonical version constant
|
|
1
|
+
{"version":3,"file":"index.js","names":["VERSION: string","pkg.version"],"sources":["../src/index.ts"],"sourcesContent":["/**\n * @graphorin/reranker-llm - LLM-as-reranker adapter for the Graphorin\n * framework.\n *\n * Asks the configured `Provider` to score `(query, passage)` pairs\n * against a deterministic scoring prompt; runs scoring in parallel\n * batches via `Promise.all()`. Drop-in replacement for the built-in\n * `RRFReranker`:\n *\n * ```ts\n * import { createMemory } from '@graphorin/memory';\n * import { createLlmReranker } from '@graphorin/reranker-llm';\n *\n * const memory = createMemory({\n * store,\n * embedder,\n * reranker: createLlmReranker({ provider }),\n * });\n * ```\n *\n * Defaults: `temperature: 0`, `batchSize: 5`, `maxScore: 10`. The\n * default scoring prompt is English; operators that target a\n * different locale pass `scoringPrompt: <localised builder>` per the\n * Phase 16 spec (the package's defaults are locale-agnostic, not\n * locale-privileging).\n *\n * @packageDocumentation\n */\n\n/** Canonical version constant, derived from `package.json` at build time. */\nimport pkg from '../package.json' with { type: 'json' };\n\nexport const VERSION: string = pkg.version;\n\nexport {\n createLlmReranker,\n LlmReRanker,\n type LlmRerankerOptions,\n mergeAndDedupe,\n normalizeScore,\n parseIntegerResponse,\n RERANKER_ID,\n} from './reranker.js';\nexport {\n defaultScoringPrompt,\n type ScoringPrompt,\n type ScoringPromptBuilder,\n type ScoringPromptInput,\n} from './scoring-prompt.js';\nexport {\n defaultPassageExtractor,\n type PassageExtractor,\n} from './text-extraction.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAaA,UAAkBC"}
|
package/dist/package.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.js","names":[],"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"@graphorin/reranker-llm\",\n \"version\": \"0.6.1\",\n \"description\": \"LLM-as-reranker adapter for the Graphorin framework. Asks the configured `Provider` to score `(query, passage)` pairs against an English (default, locale-agnostic + translatable) scoring prompt; runs scoring in parallel batches via `Promise.all()`. Defaults: `temperature: 0` (deterministic), batch size 5, score scale 0-10. Pluggable `scoringPrompt` for locale-specific phrasing. Implements the `ReRanker` contract from `@graphorin/memory/search`. Created and maintained by Oleksiy Stepurenko.\",\n \"license\": \"MIT\",\n \"author\": \"Oleksiy Stepurenko\",\n \"homepage\": \"https://github.com/o-stepper/graphorin/tree/main/packages/reranker-llm\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/o-stepper/graphorin.git\",\n \"directory\": \"packages/reranker-llm\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/o-stepper/graphorin/issues\"\n },\n \"keywords\": [\n \"graphorin\",\n \"ai\",\n \"agents\",\n \"framework\",\n \"rerank\",\n \"reranker\",\n \"llm-judge\",\n \"llm-as-reranker\"\n ],\n \"type\": \"module\",\n \"engines\": {\n \"node\": \">=22.0.0\"\n },\n \"main\": \"./dist/index.js\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"sideEffects\": false,\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\"\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"README.md\",\n \"CHANGELOG.md\",\n \"LICENSE\"\n ],\n \"scripts\": {\n \"build\": \"tsdown\",\n \"typecheck\": \"tsc --noEmit && tsc -p tsconfig.tests.json\",\n \"test\": \"vitest run\",\n \"lint\": \"biome check .\",\n \"clean\": \"rimraf dist .turbo *.tsbuildinfo\"\n },\n \"dependencies\": {\n \"@graphorin/core\": \"workspace:*\",\n \"@graphorin/memory\": \"workspace:*\"\n },\n \"publishConfig\": {\n \"access\": \"public\",\n \"provenance\": true\n }\n}\n"],"mappings":";cAEa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphorin/reranker-llm",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "LLM-as-reranker adapter for the Graphorin framework. Asks the configured `Provider` to score `(query, passage)` pairs against an English (default, locale-agnostic + translatable) scoring prompt; runs scoring in parallel batches via `Promise.all()`. Defaults: `temperature: 0` (deterministic), batch size 5, score scale 0-10. Pluggable `scoringPrompt` for locale-specific phrasing. Implements the `ReRanker` contract from `@graphorin/memory/search`. Created and maintained by Oleksiy Stepurenko.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Oleksiy Stepurenko",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"LICENSE"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@graphorin/core": "0.6.
|
|
49
|
-
"@graphorin/memory": "0.6.
|
|
48
|
+
"@graphorin/core": "0.6.1",
|
|
49
|
+
"@graphorin/memory": "0.6.1"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public",
|