diff --git a/docs/architecture/index-architecture.md b/docs/architecture/index-architecture.md index 993072e9..db45d298 100644 --- a/docs/architecture/index-architecture.md +++ b/docs/architecture/index-architecture.md @@ -578,16 +578,6 @@ const reachable = await this.graphIndex.traverse({ // Complexity: O(V + E) breadth-first search, but each neighbor lookup is O(1) ``` -## Notes on Other Indexes - -### DeletedItemsIndex (Not Currently Used) - -**Status**: Utility class exists in `src/utils/deletedItemsIndex.ts` but is **not instantiated** in the Brainy class. - -**Purpose** (if used): O(1) tracking of soft-deleted items without removing data. - -**Current Behavior**: Brainy uses hard deletes via `storage.deleteNoun()` and `storage.deleteVerb()`. Soft-delete functionality is not currently integrated. - ## Shared Memory Management: UnifiedCache All three main indexes share a single **UnifiedCache** instance for coordinated memory management. @@ -684,9 +674,6 @@ async find(query: FindQuery): Promise { results = results.filter(r => connectedIds.includes(r.id)) } - // Step 4: Filter deleted items - results = results.filter(r => !this.deletedItemsIndex.isDeleted(r.id)) - return results } ``` @@ -728,9 +715,6 @@ async stats(): Promise { relationships: this.graphIndex.getTotalRelationshipCount(), relationshipTypes: this.graphIndex.getRelationshipCountsByType(), - // From deleted items index - deletedItems: this.deletedItemsIndex.getDeletedCount(), - // From vector index vectorIndexSize: this.index.getSize() }