@ai4data/search 0.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/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@ai4data/search",
3
+ "version": "0.1.0",
4
+ "description": "Framework-agnostic semantic search client: HNSW, BM25, hybrid ranking in a Web Worker",
5
+ "main": "dist/index.mjs",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.mts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.mjs",
11
+ "types": "./dist/index.d.mts"
12
+ },
13
+ "./worker": {
14
+ "import": "./dist/worker.mjs",
15
+ "default": "./dist/worker.mjs"
16
+ },
17
+ "./rank-worker": {
18
+ "import": "./dist/rank-worker.mjs",
19
+ "default": "./dist/rank-worker.mjs"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "README.md"
25
+ ],
26
+ "scripts": {
27
+ "build": "tsup",
28
+ "prepublishOnly": "npm run build",
29
+ "test": "echo 'Add smoke test if desired'",
30
+ "lint": "echo 'Add ESLint if desired'"
31
+ },
32
+ "dependencies": {
33
+ "@huggingface/transformers": "^3.0.0",
34
+ "@xenova/transformers": "^2.17.2",
35
+ "wink-bm25-text-search": "^3.0.1",
36
+ "wink-eng-lite-web-model": "^1.6.0",
37
+ "wink-nlp": "^2.0.0"
38
+ },
39
+ "devDependencies": {
40
+ "tsup": "^8.3.5",
41
+ "typescript": "^5.6.0"
42
+ },
43
+ "keywords": [
44
+ "ai4data",
45
+ "data4ai",
46
+ "semantic-search",
47
+ "hnsw",
48
+ "bm25",
49
+ "worldbank",
50
+ "development-data"
51
+ ],
52
+ "author": "Development Data Group <ai4data@worldbank.org>",
53
+ "license": "MIT",
54
+ "repository": {
55
+ "type": "git",
56
+ "url": "https://github.com/worldbank/ai4data.git",
57
+ "directory": "packages/ai4data/search"
58
+ }
59
+ }