Skip to content

Commit 12c8a09

Browse files
fix: skip embedding initialization for pure chat/completions mode
1 parent addb5af commit 12c8a09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store/DocumentStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ export class DocumentStore {
205205
// 3. Initialize prepared statements
206206
this.prepareStatements();
207207

208-
// 4. Initialize embeddings client (await to catch errors)
209-
await this.initializeEmbeddings();
208+
// 4. 跳过 embedding 初始化,兼容无 embedding 纯检索/大模型场景
209+
// await this.initializeEmbeddings();
210210
} catch (error) {
211211
// Re-throw StoreError directly, wrap others in ConnectionError
212212
if (error instanceof StoreError) {

0 commit comments

Comments
 (0)