Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenAnonymity/oa-chat
/ _writeVector
Method
_writeVector
vector/memoryBackend.js:272–275 ·
view source on GitHub ↗
(index, vector)
Source
from the content-addressed store, hash-verified
270
}
271
272
_writeVector(index, vector) {
273
const
offset = index * this.dimension;
274
this.vectors.set(vector, offset);
275
}
276
277
_moveVector(fromIndex, toIndex) {
278
if
(fromIndex === toIndex)
return
;
Callers
1
upsertPrepared
Method · 0.95
Calls
1
set
Method · 0.80
Tested by
no test coverage detected