kibi-plugin-search-hints 0.0.0-stage → 0.1.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 +29 -0
- package/LICENSE.md +661 -0
- package/README.md +23 -2
- package/SBOM.spdx.json +64 -0
- package/THIRD_PARTY_NOTICES.md +7 -0
- package/assets/potion-base-8M.int8.bin +0 -0
- package/assets/vocab.txt +29528 -0
- package/dist/cache.d.ts +25 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +112 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +71 -0
- package/dist/model.d.ts +18 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/model.js +56 -0
- package/dist/tokenizer.d.ts +17 -0
- package/dist/tokenizer.d.ts.map +1 -0
- package/dist/tokenizer.js +135 -0
- package/integrity.json +128 -0
- package/licenses/bge-base-en-v1.5-vocabulary-MIT.txt +21 -0
- package/licenses/potion-base-8M-MIT.txt +21 -0
- package/package.json +54 -4
package/README.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Kibi search hints plugin
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This package provides the `kibi.search-hints.v1` capability. When `kb_search` gives a weak or abstained lexical answer, Kibi asks it which current entities the question is probably about, and shows up to ten of their requirements under `queryAnalysis.hints` and in one sentence of the text answer. The agent then re-asks in the KB's own words. Hints never change search results, the governing answer, abstention, `kb_check` or proofs.
|
|
4
|
+
|
|
5
|
+
Activate it in the project's `package.json` and install it as a dev dependency:
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"kibi": {
|
|
10
|
+
"plugins": [
|
|
11
|
+
{
|
|
12
|
+
"package": "kibi-plugin-search-hints",
|
|
13
|
+
"capabilities": { "kibi.search-hints.v1": { "mode": "replace" } }
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Use `"mode": "shadow"` to compute hints for comparison without showing them. `kb_search` with `hints: false` skips them for one call.
|
|
21
|
+
|
|
22
|
+
The plugin embeds text with the bundled potion-base-8M static embedding (256 dimensions, int8, about 7.7 MB): a text's vector is the normalised mean of its tokens' table rows. It is pure TypeScript with no native code and no network access, and the same text gives the same vector on every platform. Entity vectors are cached under the directory Kibi passes in, keyed by the model and each entity's content hash, so only changed entities are re-embedded. The model is English-only.
|
|
23
|
+
|
|
24
|
+
See `catalog.json`, `integrity.json`, `SBOM.spdx.json` and `THIRD_PARTY_NOTICES.md` for the shipped component record.
|
package/SBOM.spdx.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"spdxVersion": "SPDX-2.3",
|
|
3
|
+
"dataLicense": "CC0-1.0",
|
|
4
|
+
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
+
"name": "kibi-plugin-search-hints-0.1.1",
|
|
6
|
+
"documentNamespace": "https://github.com/Looted/kibi/spdx/plugin-search-hints/0.1.1",
|
|
7
|
+
"creationInfo": {
|
|
8
|
+
"creators": ["Tool: Kibi qualification record"],
|
|
9
|
+
"created": "2026-10-29T00:00:00Z"
|
|
10
|
+
},
|
|
11
|
+
"packages": [
|
|
12
|
+
{
|
|
13
|
+
"name": "kibi-plugin-search-hints",
|
|
14
|
+
"SPDXID": "SPDXRef-KibiPluginSearchHints",
|
|
15
|
+
"versionInfo": "0.1.1",
|
|
16
|
+
"downloadLocation": "https://github.com/Looted/kibi/tree/develop/packages/plugin-search-hints",
|
|
17
|
+
"filesAnalyzed": false,
|
|
18
|
+
"licenseConcluded": "AGPL-3.0-or-later",
|
|
19
|
+
"licenseDeclared": "AGPL-3.0-or-later",
|
|
20
|
+
"copyrightText": "Copyright (C) 2026 Piotr Franczyk",
|
|
21
|
+
"externalRefs": [
|
|
22
|
+
{
|
|
23
|
+
"referenceCategory": "PACKAGE-MANAGER",
|
|
24
|
+
"referenceType": "purl",
|
|
25
|
+
"referenceLocator": "pkg:npm/kibi-plugin-search-hints@0.1.1"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "potion-base-8M",
|
|
31
|
+
"SPDXID": "SPDXRef-PotionBase8M",
|
|
32
|
+
"versionInfo": "bf8b056651a2c21b8d2565580b8569da283cab23",
|
|
33
|
+
"downloadLocation": "https://huggingface.co/minishlab/potion-base-8M/resolve/bf8b056651a2c21b8d2565580b8569da283cab23/model.safetensors",
|
|
34
|
+
"filesAnalyzed": false,
|
|
35
|
+
"licenseConcluded": "MIT",
|
|
36
|
+
"licenseDeclared": "MIT",
|
|
37
|
+
"copyrightText": "Copyright (c) 2024 Thomas van Dongen",
|
|
38
|
+
"comment": "Embedding table quantized to int8 as assets/potion-base-8M.int8.bin; digests in catalog.json."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "bge-base-en-v1.5 vocabulary",
|
|
42
|
+
"SPDXID": "SPDXRef-BgeBaseVocabulary",
|
|
43
|
+
"versionInfo": "as shipped in potion-base-8M tokenizer.json",
|
|
44
|
+
"downloadLocation": "https://huggingface.co/BAAI/bge-base-en-v1.5",
|
|
45
|
+
"filesAnalyzed": false,
|
|
46
|
+
"licenseConcluded": "MIT",
|
|
47
|
+
"licenseDeclared": "MIT",
|
|
48
|
+
"copyrightText": "Copyright (c) 2022 staoxiao",
|
|
49
|
+
"comment": "WordPiece vocabulary as assets/vocab.txt."
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"relationships": [
|
|
53
|
+
{
|
|
54
|
+
"spdxElementId": "SPDXRef-KibiPluginSearchHints",
|
|
55
|
+
"relationshipType": "CONTAINS",
|
|
56
|
+
"relatedSpdxElement": "SPDXRef-PotionBase8M"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"spdxElementId": "SPDXRef-KibiPluginSearchHints",
|
|
60
|
+
"relationshipType": "CONTAINS",
|
|
61
|
+
"relatedSpdxElement": "SPDXRef-BgeBaseVocabulary"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
The package bundles the static embedding table of [potion-base-8M](https://huggingface.co/minishlab/potion-base-8M) by Minish Lab (MIT, `licenses/potion-base-8M-MIT.txt`), revision `bf8b056651a2c21b8d2565580b8569da283cab23`, and its WordPiece vocabulary, which comes from [bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) by BAAI (MIT, `licenses/bge-base-en-v1.5-vocabulary-MIT.txt`).
|
|
4
|
+
|
|
5
|
+
`assets/potion-base-8M.int8.bin` is the upstream `model.safetensors` table quantized to signed 8-bit values with one float32 scale per row by `scripts/build-model-asset.mjs`; `assets/vocab.txt` lists the upstream tokenizer vocabulary in id order. The upstream file digest, the asset digests and the quantization are recorded in `catalog.json`; package-file digests are recorded in `integrity.json`.
|
|
6
|
+
|
|
7
|
+
The tokenizer and encoder are Kibi-authored TypeScript. No upstream code, Python package or native library is shipped or executed, and nothing is downloaded at runtime.
|
|
Binary file
|