feat: add verb and noun metadata handling in storage adapters

- Implement saveVerbMetadata and getVerbMetadata methods for managing verb metadata.
- Implement saveNounMetadata and getNounMetadata methods for managing noun metadata.
- Update storage adapters to use HNSWVerb instead of GraphVerb for improved performance.
- Deprecate methods that require loading metadata for edges, returning empty arrays instead.
This commit is contained in:
David Snelling 2025-08-03 10:47:55 -07:00
parent 9905a5dc35
commit 1040f1ce34
4 changed files with 386 additions and 137 deletions

View file

@ -41,6 +41,10 @@ export abstract class BaseStorageAdapter implements StorageAdapter {
abstract getMetadata(id: string): Promise<any | null>
abstract saveVerbMetadata(id: string, metadata: any): Promise<void>
abstract getVerbMetadata(id: string): Promise<any | null>
abstract clear(): Promise<void>
abstract getStorageStatus(): Promise<{