Skip to content

Commit

Permalink
processor
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Jan 25, 2025
1 parent 3b7d0a7 commit 22417b4
Showing 1 changed file with 0 additions and 69 deletions.
69 changes: 0 additions & 69 deletions packages/core/src/core/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,73 +262,4 @@ export class MessageProcessor extends BaseProcessor {
};
}
}

// Check if we've already processed this content
// private async hasProcessedContent(
// contentId: string,
// room: Room
// ): Promise<boolean> {
// try {
// // Use findSimilarInRoom but with exact metadata matching
// const results = await this.vectorDb.findSimilarInRoom(
// contentId, // Simple query text since we're using metadata matching
// room.id,
// 1,
// {
// contentId: contentId,
// }
// );

// return results.length > 0;
// } catch (error) {
// this.logger.error("Processor.hasProcessedContent", "Check failed", {
// error: error instanceof Error ? error.message : String(error),
// contentId,
// roomId: room.id,
// });
// return false;
// }
// }

// Mark content as processed
// private async markContentAsProcessed(
// contentId: string,
// room: Room
// ): Promise<void> {
// try {
// const markerId = `processed_${contentId}`;

// await this.vectorDb.storeInRoom(
// `Processed marker for content: ${contentId}`,
// room.id,
// {
// type: "processed_marker",
// contentId: contentId,
// timestamp: new Date().toISOString(),
// }
// );

// this.logger.debug(
// "Processor.markContentAsProcessed",
// "Marked content as processed",
// {
// contentId,
// roomId: room.id,
// markerId,
// }
// );
// } catch (error) {
// this.logger.error(
// "Processor.markContentAsProcessed",
// "Failed to mark content",
// {
// error:
// error instanceof Error ? error.message : String(error),
// contentId,
// roomId: room.id,
// }
// );
// throw error;
// }
// }
}

0 comments on commit 22417b4

Please sign in to comment.