refactor(llm): update handling of note embeddings and clean up LoadResults class

This commit is contained in:
perf3ct
2025-06-02 19:10:47 +00:00
parent b0d60f8004
commit 934efab533
3 changed files with 9 additions and 14 deletions

View File

@@ -203,6 +203,13 @@ function fillInAdditionalProperties(entityChange: EntityChange) {
WHERE attachmentId = ?`,
[entityChange.entityId]
);
} else if (entityChange.entityName === "note_embeddings") {
// Note embeddings are backend-only entities for AI/vector search
// Frontend doesn't need the full embedding data (which is large binary data)
// Just ensure entity is marked as handled - actual sync happens at database level
if (!entityChange.isErased) {
entityChange.entity = { embedId: entityChange.entityId };
}
}
if (entityChange.entity instanceof AbstractBeccaEntity) {