@malipetek/semantic-router 0.0.2 → 0.0.4

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/README.md CHANGED
@@ -62,4 +62,20 @@ app.on('toolcall', [
62
62
  * ]
63
63
  * }
64
64
  */
65
- ```
65
+ ```
66
+ ## FastEmbed unzip issue
67
+ When you run router for the first time fastembed will download and unzip the model for creating vector embeddings, sometimes `tar` command fails to unzip all files in the archive. This is a known issue.
68
+
69
+ If you encounter this error, look up `local_cache` folder in your project directory. If the folder next to the `tar.gz` file only has 2 files, delete the folder and unzip the tar.gz manually.
70
+ ```
71
+ throw new Error(`Tokenizer file not found at ${tokenizerPath}`);
72
+ ```
73
+ Faulty folder:
74
+ ![Folder missing some files](image.png)
75
+
76
+ Correct folder:
77
+ ![Folder with all files](image-1.png)
78
+
79
+ ### Warning
80
+ Do not forget to add `local_cache` folder to .gitignore, it aint small:
81
+ ![Size of uncompressed model folder](image-2.png)
package/image-1.png ADDED
Binary file
package/image-2.png ADDED
Binary file
package/image.png ADDED
Binary file
package/package.json CHANGED
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "name": "@malipetek/semantic-router",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Semantic router for nodejs for my personal use, pretty straightforward, inspired by semantic router by aureliolabs",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/malipetek/semantic-router.git"
8
+ },
9
+ "homepage": "https://github.com/malipetek/semantic-router",
5
10
  "main": "src/semantic-router.js",
6
11
  "author": "m.ali petek",
7
12
  "license": "MIT",