feat: refactor verb storage to use HNSWVerb for improved performance
- Updated MemoryStorage and BaseStorage to handle HNSWVerb instead of GraphVerb. - Introduced methods to save and retrieve verb metadata separately. - Enhanced getVerb and getAllVerbs methods to convert HNSWVerb to GraphVerb with metadata. - Improved data handling and filtering in various storage methods.
This commit is contained in:
parent
abd98a9f37
commit
9905a5dc35
5 changed files with 303 additions and 119 deletions
|
|
@ -250,6 +250,7 @@ import type {
|
|||
EmbeddingFunction,
|
||||
EmbeddingModel,
|
||||
HNSWNoun,
|
||||
HNSWVerb,
|
||||
HNSWConfig,
|
||||
StorageAdapter
|
||||
} from './coreTypes.js'
|
||||
|
|
@ -271,6 +272,7 @@ export type {
|
|||
EmbeddingFunction,
|
||||
EmbeddingModel,
|
||||
HNSWNoun,
|
||||
HNSWVerb,
|
||||
HNSWConfig,
|
||||
HNSWOptimizedConfig,
|
||||
StorageAdapter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue