@aalis/plugin-embedding-ollama 0.12.0 → 0.13.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/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -28
- package/dist/index.js.map +1 -1
- package/dist/locales/en.d.ts +20 -0
- package/dist/locales/en.d.ts.map +1 -0
- package/dist/locales/en.js +20 -0
- package/dist/locales/en.js.map +1 -0
- package/dist/texts.d.ts +39 -0
- package/dist/texts.d.ts.map +1 -0
- package/dist/texts.js +28 -0
- package/dist/texts.js.map +1 -0
- package/package.json +10 -6
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ declare const _default: import("@aalis/core").PluginDefinition<{
|
|
|
4
4
|
lifecycle: import("@aalis/core").ServiceDescriptor<(identity: symbol) => import("@aalis/core").LifecycleCap, import("@aalis/core").LifecycleCap>;
|
|
5
5
|
provide: import("@aalis/core").ServiceDescriptor<(identity: symbol) => import("@aalis/core").Provide, import("@aalis/core").Provide>;
|
|
6
6
|
doctor: import("@aalis/core").OptionalUse<import("@aalis/api-doctor").DoctorService, import("@aalis/api-doctor").BoundDoctor>;
|
|
7
|
+
contributions: import("@aalis/core").OptionalUse<import("@aalis/api-contributions").ContributionRegistry, import("@aalis/api-contributions").Contributions>;
|
|
7
8
|
}>;
|
|
8
9
|
export default _default;
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAuMA,wBASG"}
|
package/dist/index.js
CHANGED
|
@@ -1,32 +1,30 @@
|
|
|
1
|
+
import { contributions } from '@aalis/api-contributions';
|
|
1
2
|
import { doctor } from '@aalis/api-doctor';
|
|
2
3
|
import { embedding } from '@aalis/api-embedding';
|
|
3
4
|
import { config, definePlugin, lifecycle, logger, optional, provide } from '@aalis/core';
|
|
4
5
|
import { configError, defineConfig, parseConfig } from '@aalis/schema-config';
|
|
6
|
+
import { TextError, textLines, textOf, withText } from '@aalis/schema-i18n';
|
|
7
|
+
import { t } from './texts.js';
|
|
5
8
|
// ===== 插件元数据 =====
|
|
6
9
|
const name = '@aalis/plugin-embedding-ollama';
|
|
7
10
|
const configSchema = defineConfig({
|
|
8
11
|
baseUrl: {
|
|
9
12
|
type: 'string',
|
|
10
|
-
label: '
|
|
13
|
+
label: t('baseUrlLabel'),
|
|
11
14
|
default: 'http://localhost:11434',
|
|
12
15
|
onInvalid: 'error',
|
|
13
|
-
description: '
|
|
16
|
+
description: t('baseUrlDescription'),
|
|
14
17
|
},
|
|
15
18
|
model: {
|
|
16
19
|
type: 'select',
|
|
17
|
-
label: '
|
|
20
|
+
label: t('modelLabel'),
|
|
18
21
|
default: 'nomic-embed-text',
|
|
19
|
-
dynamicOptions: 'embedding',
|
|
20
|
-
description: '
|
|
22
|
+
dynamicOptions: 'embedding-ollama',
|
|
23
|
+
description: t('modelDescription'),
|
|
21
24
|
},
|
|
22
|
-
timeoutMs: { type: 'number', label: '
|
|
23
|
-
retries: { type: 'number', label: '
|
|
25
|
+
timeoutMs: { type: 'number', label: t('timeoutMsLabel'), default: 30000, description: t('timeoutMsDescription') },
|
|
26
|
+
retries: { type: 'number', label: t('retriesLabel'), default: 1, description: t('retriesDescription') },
|
|
24
27
|
});
|
|
25
|
-
function formatError(err) {
|
|
26
|
-
if (err instanceof Error)
|
|
27
|
-
return err.message;
|
|
28
|
-
return String(err);
|
|
29
|
-
}
|
|
30
28
|
/**
|
|
31
29
|
* 把响应体里的 error 一并带进错误消息。
|
|
32
30
|
*
|
|
@@ -45,8 +43,11 @@ function statusError(res, endpoint) {
|
|
|
45
43
|
detail = res.text;
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
|
-
const
|
|
49
|
-
|
|
46
|
+
const { status, statusText } = res;
|
|
47
|
+
const text = detail
|
|
48
|
+
? t('statusFailedDetail', { endpoint, status, statusText, detail: detail.slice(0, 200) })
|
|
49
|
+
: t('statusFailed', { endpoint, status, statusText });
|
|
50
|
+
return withText(new HttpStatusError(status, text.source), text);
|
|
50
51
|
}
|
|
51
52
|
/** 带 HTTP 状态码的响应错误:新旧 API 探测据此区分「端点不存在」与瞬态故障 */
|
|
52
53
|
class HttpStatusError extends Error {
|
|
@@ -85,8 +86,7 @@ class OllamaEmbeddingService {
|
|
|
85
86
|
* 配置的「请求超时」形同虚设,索引路径上的一个并发槽也跟着被占住。
|
|
86
87
|
*/
|
|
87
88
|
async postJson(path, body, options) {
|
|
88
|
-
let
|
|
89
|
-
for (let attempt = 0; attempt <= this.retries; attempt++) {
|
|
89
|
+
for (let attempt = 0;; attempt++) {
|
|
90
90
|
options?.signal?.throwIfAborted();
|
|
91
91
|
const controller = new AbortController();
|
|
92
92
|
const timer = setTimeout(() => controller.abort(), this.timeoutMs);
|
|
@@ -102,11 +102,9 @@ class OllamaEmbeddingService {
|
|
|
102
102
|
}
|
|
103
103
|
// 要重试:主动取消被丢弃的响应体,否则 undici 侧套接字被钉住到 GC
|
|
104
104
|
await res.body?.cancel().catch(() => undefined);
|
|
105
|
-
lastErr = new Error(`HTTP ${res.status} ${res.statusText}`);
|
|
106
105
|
}
|
|
107
106
|
catch (err) {
|
|
108
107
|
options?.signal?.throwIfAborted();
|
|
109
|
-
lastErr = err;
|
|
110
108
|
if (attempt >= this.retries)
|
|
111
109
|
throw err;
|
|
112
110
|
}
|
|
@@ -114,7 +112,6 @@ class OllamaEmbeddingService {
|
|
|
114
112
|
clearTimeout(timer);
|
|
115
113
|
}
|
|
116
114
|
}
|
|
117
|
-
throw new Error(`Ollama embedding 请求失败: ${formatError(lastErr)}`);
|
|
118
115
|
}
|
|
119
116
|
async embed(text, options) {
|
|
120
117
|
options?.signal?.throwIfAborted();
|
|
@@ -159,6 +156,7 @@ class OllamaEmbeddingService {
|
|
|
159
156
|
const data = JSON.parse(res.text);
|
|
160
157
|
return data.embedding;
|
|
161
158
|
}
|
|
159
|
+
/** 本机 Ollama 的全部模型:本插件的可选项来源 embedding-ollama 用它 */
|
|
162
160
|
async listModels() {
|
|
163
161
|
try {
|
|
164
162
|
const res = await fetch(`${this.baseUrl}/api/tags`, { signal: AbortSignal.timeout(this.timeoutMs) });
|
|
@@ -178,8 +176,11 @@ class OllamaEmbeddingService {
|
|
|
178
176
|
}
|
|
179
177
|
}
|
|
180
178
|
// ===== 插件入口 =====
|
|
181
|
-
/**
|
|
182
|
-
|
|
179
|
+
/**
|
|
180
|
+
* doctor 是可选依赖:服务注册成功 != 模型可用,健康状况经 registerCheck 上报。contributions 交「Embedding 模型」下拉的
|
|
181
|
+
* 可选项来源,缺席时下拉没有可选项
|
|
182
|
+
*/
|
|
183
|
+
const uses = { config, logger, lifecycle, provide, doctor: optional(doctor), contributions: optional(contributions) };
|
|
183
184
|
export default definePlugin({
|
|
184
185
|
name,
|
|
185
186
|
displayName: 'Ollama Embedding',
|
|
@@ -190,10 +191,14 @@ export default definePlugin({
|
|
|
190
191
|
uses,
|
|
191
192
|
apply: startOllamaEmbedding,
|
|
192
193
|
});
|
|
193
|
-
async function startOllamaEmbedding({ config, logger, lifecycle, provide, doctor }) {
|
|
194
|
+
async function startOllamaEmbedding({ config, logger, lifecycle, provide, doctor, contributions, }) {
|
|
194
195
|
const cfg = parseConfig(configSchema, config.use, logger.use);
|
|
195
196
|
if (!URL.canParse(cfg.baseUrl) || new URL(cfg.baseUrl).username || new URL(cfg.baseUrl).password) {
|
|
196
|
-
throw configError('
|
|
197
|
+
throw configError(t('baseUrlInvalid'));
|
|
198
|
+
}
|
|
199
|
+
// 插件在 baseUrl 后面拼路径,带查询串或片段(含末尾单个 ?)时拼出来的地址是坏的,所以按原文判
|
|
200
|
+
if (/[?#]/.test(cfg.baseUrl)) {
|
|
201
|
+
throw configError(t('baseUrlQuery'));
|
|
197
202
|
}
|
|
198
203
|
const { baseUrl, model, timeoutMs } = cfg;
|
|
199
204
|
const service = new OllamaEmbeddingService(baseUrl, model, timeoutMs, cfg.retries);
|
|
@@ -208,8 +213,14 @@ async function startOllamaEmbedding({ config, logger, lifecycle, provide, doctor
|
|
|
208
213
|
logger.use.warn(`Ollama Embedding 连通性检查失败 (${baseUrl}, model=${model}): ${msg},服务仍将注册`);
|
|
209
214
|
}
|
|
210
215
|
provide.use(embedding, service, { label: `Ollama / ${model}` });
|
|
216
|
+
// 「Embedding 模型」下拉只列这个插件连着的 Ollama 的模型(按服务名合起各提供者会混进别家的);来源名按插件定,开了几个实例时
|
|
217
|
+
// WebUI 取最前那家
|
|
218
|
+
contributions.use.contribute('webui:options', {
|
|
219
|
+
id: 'embedding-ollama',
|
|
220
|
+
list: async () => (await service.listModels()).map(name => ({ value: name, label: name })),
|
|
221
|
+
});
|
|
211
222
|
// 连通性失败只 warn、服务照常注册,是刻意的(Ollama 可能晚于 Aalis 起来)。
|
|
212
|
-
// 代价是「服务在、但每次调用都失败」这一态对用户完全不可见:/status
|
|
223
|
+
// 代价是「服务在、但每次调用都失败」这一态对用户完全不可见:/status 只数插件状态,
|
|
213
224
|
// 插件状态是 active,向量记忆则每条消息静默失败。把真实健康状况交给 doctor 上报。
|
|
214
225
|
// doctor 的 runChecks 顺序 await 且不设超时(plugin-doctor/src/index.ts:runChecks),
|
|
215
226
|
// 而 embed 最长要等 (retries + 1) × timeoutMs(默认 60s)。/doctor 正是出问题时才跑的
|
|
@@ -235,7 +246,7 @@ async function startOllamaEmbedding({ config, logger, lifecycle, provide, doctor
|
|
|
235
246
|
service.embed('ping', { signal: controller.signal }),
|
|
236
247
|
new Promise((_, reject) => {
|
|
237
248
|
timer = setTimeout(() => {
|
|
238
|
-
const error = new
|
|
249
|
+
const error = new TextError(t('probeTimeout', { ms: probeTimeoutMs }));
|
|
239
250
|
controller.abort(error);
|
|
240
251
|
reject(error);
|
|
241
252
|
}, probeTimeoutMs);
|
|
@@ -246,7 +257,7 @@ async function startOllamaEmbedding({ config, logger, lifecycle, provide, doctor
|
|
|
246
257
|
id: checkId,
|
|
247
258
|
category: 'service',
|
|
248
259
|
level: 'ok',
|
|
249
|
-
message:
|
|
260
|
+
message: t('checkOk', { model, baseUrl }),
|
|
250
261
|
};
|
|
251
262
|
}
|
|
252
263
|
catch (err) {
|
|
@@ -254,8 +265,8 @@ async function startOllamaEmbedding({ config, logger, lifecycle, provide, doctor
|
|
|
254
265
|
id: checkId,
|
|
255
266
|
category: 'service',
|
|
256
267
|
level: 'error',
|
|
257
|
-
message:
|
|
258
|
-
detail:
|
|
268
|
+
message: t('checkFailed', { model, baseUrl }),
|
|
269
|
+
detail: textLines([textOf(err), t('checkFix', { model })]),
|
|
259
270
|
};
|
|
260
271
|
}
|
|
261
272
|
finally {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAuD,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAoB,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAuD,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtG,OAAO,EAAgB,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACvG,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAA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of the local Ollama service";
|
|
4
|
+
readonly modelLabel: "Embedding model";
|
|
5
|
+
readonly modelDescription: "The model used to turn text into vectors";
|
|
6
|
+
readonly timeoutMsLabel: "Request timeout (ms)";
|
|
7
|
+
readonly timeoutMsDescription: "Timeout of a single embedding request";
|
|
8
|
+
readonly retriesLabel: "Retries on failure";
|
|
9
|
+
readonly retriesDescription: "How many times to retry when fetch fails or returns 5xx";
|
|
10
|
+
readonly baseUrlInvalid: "baseUrl must be a full URL without a user name or password";
|
|
11
|
+
readonly baseUrlQuery: "baseUrl cannot contain a query string or fragment (anything after ? or #): the plugin appends paths to it";
|
|
12
|
+
readonly statusFailed: "Ollama embedding request failed ({endpoint}): {status} {statusText}";
|
|
13
|
+
readonly statusFailedDetail: "Ollama embedding request failed ({endpoint}): {status} {statusText} — {detail}";
|
|
14
|
+
readonly probeTimeout: "Probe timed out ({ms}ms)";
|
|
15
|
+
readonly checkOk: "Ollama Embedding available ({model} @ {baseUrl})";
|
|
16
|
+
readonly checkFailed: "Ollama Embedding unavailable ({model} @ {baseUrl}) — vector memory is not working";
|
|
17
|
+
readonly checkFix: "Make sure Ollama is running and you have run ollama pull {model} (or change the model config item to an embedding model this machine has)";
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
//# sourceMappingURL=en.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAGA,wBAmBG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineLocale } from '@aalis/schema-i18n';
|
|
2
|
+
export default defineLocale()({
|
|
3
|
+
baseUrlLabel: 'Ollama URL',
|
|
4
|
+
baseUrlDescription: 'HTTP address of the local Ollama service',
|
|
5
|
+
modelLabel: 'Embedding model',
|
|
6
|
+
modelDescription: 'The model used to turn text into vectors',
|
|
7
|
+
timeoutMsLabel: 'Request timeout (ms)',
|
|
8
|
+
timeoutMsDescription: 'Timeout of a single embedding request',
|
|
9
|
+
retriesLabel: 'Retries on failure',
|
|
10
|
+
retriesDescription: 'How many times to retry when fetch fails or returns 5xx',
|
|
11
|
+
baseUrlInvalid: 'baseUrl must be a full URL without a user name or password',
|
|
12
|
+
baseUrlQuery: 'baseUrl cannot contain a query string or fragment (anything after ? or #): the plugin appends paths to it',
|
|
13
|
+
statusFailed: 'Ollama embedding request failed ({endpoint}): {status} {statusText}',
|
|
14
|
+
statusFailedDetail: 'Ollama embedding request failed ({endpoint}): {status} {statusText} — {detail}',
|
|
15
|
+
probeTimeout: 'Probe timed out ({ms}ms)',
|
|
16
|
+
checkOk: 'Ollama Embedding available ({model} @ {baseUrl})',
|
|
17
|
+
checkFailed: 'Ollama Embedding unavailable ({model} @ {baseUrl}) — vector memory is not working',
|
|
18
|
+
checkFix: 'Make sure Ollama is running and you have run ollama pull {model} (or change the model config item to an embedding model this machine has)',
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=en.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,eAAe,YAAY,EAAU,CAAC;IACpC,YAAY,EAAE,YAAY;IAC1B,kBAAkB,EAAE,0CAA0C;IAC9D,UAAU,EAAE,iBAAiB;IAC7B,gBAAgB,EAAE,0CAA0C;IAC5D,cAAc,EAAE,sBAAsB;IACtC,oBAAoB,EAAE,uCAAuC;IAC7D,YAAY,EAAE,oBAAoB;IAClC,kBAAkB,EAAE,yDAAyD;IAC7E,cAAc,EAAE,4DAA4D;IAC5E,YAAY,EACV,2GAA2G;IAC7G,YAAY,EAAE,qEAAqE;IACnF,kBAAkB,EAAE,gFAAgF;IACpG,YAAY,EAAE,0BAA0B;IACxC,OAAO,EAAE,kDAAkD;IAC3D,WAAW,EAAE,mFAAmF;IAChG,QAAQ,EACN,2IAA2I;CAC9I,CAAC,CAAC"}
|
package/dist/texts.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const SOURCE: {
|
|
2
|
+
readonly baseUrlLabel: "Ollama 地址";
|
|
3
|
+
readonly baseUrlDescription: "本地 Ollama 服务的 HTTP 地址";
|
|
4
|
+
readonly modelLabel: "Embedding 模型";
|
|
5
|
+
readonly modelDescription: "用于生成文本向量的模型";
|
|
6
|
+
readonly timeoutMsLabel: "请求超时 (ms)";
|
|
7
|
+
readonly timeoutMsDescription: "单次 embedding 请求超时时间";
|
|
8
|
+
readonly retriesLabel: "失败重试次数";
|
|
9
|
+
readonly retriesDescription: "fetch 失败或 5xx 时的重试次数";
|
|
10
|
+
readonly baseUrlInvalid: "baseUrl 需为不带用户名或密码的完整 URL";
|
|
11
|
+
readonly baseUrlQuery: "baseUrl 不能带查询串或片段(? 或 # 之后的部分):插件在它后面拼接路径";
|
|
12
|
+
readonly statusFailed: "Ollama embedding 请求失败 ({endpoint}): {status} {statusText}";
|
|
13
|
+
readonly statusFailedDetail: "Ollama embedding 请求失败 ({endpoint}): {status} {statusText} —— {detail}";
|
|
14
|
+
readonly probeTimeout: "探测超时({ms}ms)";
|
|
15
|
+
readonly checkOk: "Ollama Embedding 可用 ({model} @ {baseUrl})";
|
|
16
|
+
readonly checkFailed: "Ollama Embedding 不可用 ({model} @ {baseUrl})——向量记忆不工作";
|
|
17
|
+
readonly checkFix: "确认 Ollama 在运行,并已执行 ollama pull {model}(或把配置项 model 改成本机已有的嵌入模型)";
|
|
18
|
+
};
|
|
19
|
+
export type Source = typeof SOURCE;
|
|
20
|
+
export declare const t: import("@aalis/schema-i18n").TextFactory<{
|
|
21
|
+
readonly baseUrlLabel: "Ollama 地址";
|
|
22
|
+
readonly baseUrlDescription: "本地 Ollama 服务的 HTTP 地址";
|
|
23
|
+
readonly modelLabel: "Embedding 模型";
|
|
24
|
+
readonly modelDescription: "用于生成文本向量的模型";
|
|
25
|
+
readonly timeoutMsLabel: "请求超时 (ms)";
|
|
26
|
+
readonly timeoutMsDescription: "单次 embedding 请求超时时间";
|
|
27
|
+
readonly retriesLabel: "失败重试次数";
|
|
28
|
+
readonly retriesDescription: "fetch 失败或 5xx 时的重试次数";
|
|
29
|
+
readonly baseUrlInvalid: "baseUrl 需为不带用户名或密码的完整 URL";
|
|
30
|
+
readonly baseUrlQuery: "baseUrl 不能带查询串或片段(? 或 # 之后的部分):插件在它后面拼接路径";
|
|
31
|
+
readonly statusFailed: "Ollama embedding 请求失败 ({endpoint}): {status} {statusText}";
|
|
32
|
+
readonly statusFailedDetail: "Ollama embedding 请求失败 ({endpoint}): {status} {statusText} —— {detail}";
|
|
33
|
+
readonly probeTimeout: "探测超时({ms}ms)";
|
|
34
|
+
readonly checkOk: "Ollama Embedding 可用 ({model} @ {baseUrl})";
|
|
35
|
+
readonly checkFailed: "Ollama Embedding 不可用 ({model} @ {baseUrl})——向量记忆不工作";
|
|
36
|
+
readonly checkFix: "确认 Ollama 在运行,并已执行 ollama pull {model}(或把配置项 model 改成本机已有的嵌入模型)";
|
|
37
|
+
}>;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=texts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"texts.d.ts","sourceRoot":"","sources":["../src/texts.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;CAiBF,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC;AAEnC,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;EAKZ,CAAC"}
|
package/dist/texts.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// 本插件自己的原文字典:配置项、配置报错、请求报错与诊断项
|
|
2
|
+
import { defineTexts } from '@aalis/schema-i18n';
|
|
3
|
+
import en from './locales/en.js';
|
|
4
|
+
const SOURCE = {
|
|
5
|
+
baseUrlLabel: 'Ollama 地址',
|
|
6
|
+
baseUrlDescription: '本地 Ollama 服务的 HTTP 地址',
|
|
7
|
+
modelLabel: 'Embedding 模型',
|
|
8
|
+
modelDescription: '用于生成文本向量的模型',
|
|
9
|
+
timeoutMsLabel: '请求超时 (ms)',
|
|
10
|
+
timeoutMsDescription: '单次 embedding 请求超时时间',
|
|
11
|
+
retriesLabel: '失败重试次数',
|
|
12
|
+
retriesDescription: 'fetch 失败或 5xx 时的重试次数',
|
|
13
|
+
baseUrlInvalid: 'baseUrl 需为不带用户名或密码的完整 URL',
|
|
14
|
+
baseUrlQuery: 'baseUrl 不能带查询串或片段(? 或 # 之后的部分):插件在它后面拼接路径',
|
|
15
|
+
statusFailed: 'Ollama embedding 请求失败 ({endpoint}): {status} {statusText}',
|
|
16
|
+
statusFailedDetail: 'Ollama embedding 请求失败 ({endpoint}): {status} {statusText} —— {detail}',
|
|
17
|
+
probeTimeout: '探测超时({ms}ms)',
|
|
18
|
+
checkOk: 'Ollama Embedding 可用 ({model} @ {baseUrl})',
|
|
19
|
+
checkFailed: 'Ollama Embedding 不可用 ({model} @ {baseUrl})——向量记忆不工作',
|
|
20
|
+
checkFix: '确认 Ollama 在运行,并已执行 ollama pull {model}(或把配置项 model 改成本机已有的嵌入模型)',
|
|
21
|
+
};
|
|
22
|
+
export const t = defineTexts({
|
|
23
|
+
ns: '@aalis/plugin-embedding-ollama',
|
|
24
|
+
language: 'zh-CN',
|
|
25
|
+
source: SOURCE,
|
|
26
|
+
locales: { en },
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=texts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"texts.js","sourceRoot":"","sources":["../src/texts.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEjC,MAAM,MAAM,GAAG;IACb,YAAY,EAAE,WAAW;IACzB,kBAAkB,EAAE,uBAAuB;IAC3C,UAAU,EAAE,cAAc;IAC1B,gBAAgB,EAAE,aAAa;IAC/B,cAAc,EAAE,WAAW;IAC3B,oBAAoB,EAAE,qBAAqB;IAC3C,YAAY,EAAE,QAAQ;IACtB,kBAAkB,EAAE,sBAAsB;IAC1C,cAAc,EAAE,2BAA2B;IAC3C,YAAY,EAAE,2CAA2C;IACzD,YAAY,EAAE,2DAA2D;IACzE,kBAAkB,EAAE,uEAAuE;IAC3F,YAAY,EAAE,cAAc;IAC5B,OAAO,EAAE,2CAA2C;IACpD,WAAW,EAAE,qDAAqD;IAClE,QAAQ,EAAE,iEAAiE;CACnE,CAAC;AAGX,MAAM,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC;IAC3B,EAAE,EAAE,gCAAgC;IACpC,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,EAAE,EAAE,EAAE;CAChB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aalis/plugin-embedding-ollama",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,14 +26,15 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^22.0.0",
|
|
28
28
|
"typescript": "^5.7.0",
|
|
29
|
-
"@aalis/core": "0.
|
|
29
|
+
"@aalis/core": "0.21.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@aalis/core": ">=0.
|
|
32
|
+
"@aalis/core": ">=0.21.0 <1.0.0"
|
|
33
33
|
},
|
|
34
34
|
"aalis": {
|
|
35
35
|
"service": {
|
|
36
36
|
"optional": [
|
|
37
|
+
"contributions",
|
|
37
38
|
"doctor"
|
|
38
39
|
],
|
|
39
40
|
"provides": [
|
|
@@ -48,9 +49,12 @@
|
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"@aalis/api-doctor": ">=0.
|
|
52
|
-
"@aalis/api-embedding": ">=0.
|
|
53
|
-
"@aalis/schema-config": ">=0.
|
|
52
|
+
"@aalis/api-doctor": ">=0.9.0 <1.0.0",
|
|
53
|
+
"@aalis/api-embedding": ">=0.9.0 <1.0.0",
|
|
54
|
+
"@aalis/schema-config": ">=0.16.0 <1.0.0",
|
|
55
|
+
"@aalis/api-contributions": ">=0.2.0 <1.0.0",
|
|
56
|
+
"@aalis/api-webui": ">=0.13.0 <1.0.0",
|
|
57
|
+
"@aalis/schema-i18n": ">=0.1.0 <1.0.0"
|
|
54
58
|
},
|
|
55
59
|
"scripts": {
|
|
56
60
|
"build": "tsc",
|