MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / _readVector

Method _readVector

vector/memoryBackend.js:284–287  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

282 }
283
284 _readVector(index) {
285 const offset = index * this.dimension;
286 return this.vectors.slice(offset, offset + this.dimension);
287 }
288
289 _scoreVector(queryVector, index) {
290 const offset = index * this.dimension;

Callers 2

getMethod · 0.95
searchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected