跳到主要内容

DeepSeek Harness 本地聊天记忆:按来源保存聊天原文,关键词 + 向量检索,可选大模型重排与检索摘要。源码公开,仅限非商用

浏览文件
main

分支

index.js

7 行 · 484 B历史下载
1import { applyMemory } from './src/host.js';
2export function apply(ctx, config) { applyMemory(ctx, config); }
3export { RetrievalMemory, renderEvidence } from './src/store.js';
4export { createEmbedder, createReranker, normalizeProvider } from './src/models.js';
5export { resolveOrigin, DEFAULT_ORIGIN_RULES } from './src/origin.js';
6// Required. systemPrompt, tools and webServer are optional and attached through ctx.inject when present.
7export const inject = ['sessionProjections'];