Skip to content

Commit

Permalink
feat: add local embedding model
Browse files Browse the repository at this point in the history
  • Loading branch information
2214962083 committed Sep 24, 2024
1 parent bfa86a8 commit 9160d96
Show file tree
Hide file tree
Showing 19 changed files with 1,312 additions and 223 deletions.
22 changes: 19 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
"i18n-ally.localesPaths": ["."],
"i18n-ally.enabledFrameworks": ["vscode", "react"],
"i18n-ally.dirStructure": "file",

// performance
"editor.largeFileOptimizations": true,
"search.exclude": {
"**/node_modules/**": true,
"**/dist/**": true,
"**/*.min.js": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/dist/**": true
},

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
Expand All @@ -18,9 +33,6 @@
],
"editor.tabSize": 2,
"editor.detectIndentation": false,
"search.exclude": {
"package-lock.json": true
},
"editor.codeActionsOnSave": [
"source.addMissingImports",
"source.fixAll.eslint"
Expand Down Expand Up @@ -74,17 +86,20 @@
"lancedb",
"langchain",
"langgraph",
"logits",
"Mhchem",
"multistream",
"Nicepkg",
"nodir",
"Nolebase",
"Ollama",
"onnx",
"onnxruntime",
"openai",
"pino",
"Pipfile",
"Pluggable",
"pretrained",
"pyproject",
"qwen",
"rehype",
Expand All @@ -104,6 +119,7 @@
"treeshake",
"tsup",
"undici",
"unsqueeze",
"uuidv",
"vectordb",
"vectorstores",
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,6 @@
"minimatch": "^10.0.1",
"next-themes": "^0.3.0",
"node-fetch": "^3.3.2",
"onnxruntime-common": "^1.19.2",
"onnxruntime-node": "^1.19.2",
"p-limit": "^6.1.0",
"pnpm": "^9.10.0",
"postcss": "^8.4.47",
Expand Down
93 changes: 8 additions & 85 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions scripts/fix-package/@xenova/transformers/transformers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* @file Entry point for the Transformers.js library. Only the exports from this file
* are available to the end user, and are grouped as follows:
*
* 1. [Pipelines](./pipelines)
* 2. [Environment variables](./env)
* 3. [Models](./models)
* 4. [Tokenizers](./tokenizers)
* 5. [Processors](./processors)
*
* @module transformers
*/

export * from './pipelines.js'
export * from './env.js'
// export * from './models.js';
// export * from './tokenizers.js';
// export * from './processors.js';
// export * from './configs.js';

// export * from './utils/audio.js';
// export * from './utils/image.js';
// export * from './utils/tensor.js';
export * from './utils/maths.js'
Loading

0 comments on commit 9160d96

Please sign in to comment.