@sap-ux/fiori-docs-embeddings 1.0.0 → 1.1.0

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/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export declare function getDataPath(): string;
2
+ export declare function getEmbeddingsPath(): string;
3
+ export declare function getSearchPath(): string;
4
+ export declare function getDocsPath(): string;
5
+ export declare function hasEmbeddings(): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-docs-embeddings",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "SAP Fiori documentation indexing",
5
5
  "type": "module",
6
6
  "repository": {
@@ -14,16 +14,15 @@
14
14
  "@jest/globals": "30.3.0",
15
15
  "@npm/types": "2.1.0",
16
16
  "@types/node": "22.13.14",
17
- "@lancedb/lancedb": "0.22.0",
18
- "@xenova/transformers": "2.17.2",
17
+ "@huggingface/transformers": "4.2.0",
19
18
  "npm-run-all2": "8.0.4",
20
19
  "node-fetch": "^3.3.2",
21
20
  "marked": "^12.0.0",
22
21
  "gray-matter": "^4.0.3",
23
22
  "fast-xml-parser": "5.8.0",
24
23
  "tsx": "^4.7.0",
25
- "@sap-ux/logger": "1.0.0",
26
- "@sap-ux/create": "1.0.0"
24
+ "@sap-ux/logger": "1.0.1",
25
+ "@sap-ux/create": "1.0.11"
27
26
  },
28
27
  "keywords": [
29
28
  "mcp",
@@ -38,7 +37,8 @@
38
37
  "node": ">=22.x"
39
38
  },
40
39
  "files": [
41
- "data/index.js",
40
+ "index.js",
41
+ "index.d.ts",
42
42
  "data/embeddings/**/*",
43
43
  "data/search/**/*",
44
44
  "README.md",
@@ -46,6 +46,7 @@
46
46
  "LICENSE"
47
47
  ],
48
48
  "main": "index.js",
49
+ "types": "index.d.ts",
49
50
  "scripts": {
50
51
  "build-compile": "tsc --noEmit",
51
52
  "copy-create-readme": "node -e \"require('fs').copyFileSync('node_modules/@sap-ux/create/README.md', 'data_local/create-README.md')\"",
@@ -1,8 +0,0 @@
1
- {
2
- "tables": [
3
- "documents_000"
4
- ],
5
- "totalTables": 1,
6
- "maxVectorsPerTable": 5000,
7
- "totalVectors": 748
8
- }