feat: Implement HypaV3 ratio-based memory

This commit is contained in:
Bo26fhmC5M
2025-01-12 01:45:49 +09:00
parent 3b533e911f
commit 50361d7aa2
9 changed files with 1004 additions and 7 deletions

View File

@@ -206,9 +206,9 @@ function similarity(a:VectorArray, b:VectorArray) {
return dot
}
type VectorArray = number[]|Float32Array
export type VectorArray = number[]|Float32Array
type memoryVector = {
export type memoryVector = {
embedding:number[]|Float32Array,
content:string,
alreadySaved?:boolean