Add Persona semantic memory recall

This commit is contained in:
Meta Vens 2026-06-09 00:36:42 +01:00
commit c779f4915f
16 changed files with 396 additions and 12 deletions

View file

@ -112,19 +112,23 @@ const sourceQueryEmbedder = createTextEmbedder({
const vectorStores = createVectorStores({
kind: config.vectorStore.kind,
historyPath: config.vectorStore.path,
personaMemoryPath: config.vectorStore.personaMemoryPath,
sourceRoot: config.sourceVectorStoreRoot,
qdrant: config.qdrant,
historyEmbedder: embedder,
sourceEmbedder: sourceQueryEmbedder,
personaMemoryEmbedder: embedder,
});
const historyVectorStore = vectorStores.history;
const sourceVectorStore = vectorStores.source;
const personaMemoryVectorStore = vectorStores.personaMemory;
const archiveRepository = new FileMessageArchiveRepository(config.ragArchivePath);
const sourceArchiveRepository = new FileSourceDocumentArchiveRepository(config.ragSourceArchivePath);
const sourceDocumentIngester = new SourceDocumentIngester();
const retrievalService = new RetrievalService(
historyVectorStore,
sourceVectorStore,
personaMemoryVectorStore,
);
let isProcessing = false;

View file

@ -47,14 +47,17 @@ export function createVoidbotMcpContext(): VoidbotMcpContext {
const vectorStores = createVectorStores({
kind: config.vectorStore.kind,
historyPath: config.vectorStore.path,
personaMemoryPath: config.vectorStore.personaMemoryPath,
sourceRoot: config.sourceVectorStoreRoot,
qdrant: config.qdrant,
historyEmbedder: embedder,
sourceEmbedder: sourceQueryEmbedder,
personaMemoryEmbedder: embedder,
});
const retrievalService = new RetrievalService(
vectorStores.history,
vectorStores.source,
vectorStores.personaMemory,
);
const sourceDocumentIngester = new SourceDocumentIngester();