chore: drop hive-mind provenance notes from comments (P2.2)
Comments that pointed at hive-mind-core files, the hive-mind OSS mirror and its drift triage now describe the code as it is. The in-process reranker caches its model in ~/.waggle/models, like the embedder, when the caller passes no directory; the sidecar always passes one.
This commit is contained in:
@@ -1,19 +1,11 @@
|
||||
/**
|
||||
* In-process embedder tests — ported from
|
||||
* hive-mind/packages/core/src/mind/inprocess-embedder.test.ts.
|
||||
*
|
||||
* Memory Sync Repair Step 2. Source: hive-mind file at HEAD c363257.
|
||||
*
|
||||
* Verbatim port — only the import path is adjusted from
|
||||
* `./inprocess-embedder.js` to `../../src/mind/inprocess-embedder.js`
|
||||
* to match waggle-os's tests/mind/ placement convention. Both repos
|
||||
* export the same `normalizeDimensions(input, target)` shape with the
|
||||
* documented "no-copy fast path when dims match" contract.
|
||||
* In-process embedder tests: `normalizeDimensions(input, target)` and its
|
||||
* "no-copy fast path when dims match" contract.
|
||||
*/
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { normalizeDimensions } from '../../src/embeddings/inprocess-embedder.js';
|
||||
|
||||
describe('normalizeDimensions (hive-mind port)', () => {
|
||||
describe('normalizeDimensions', () => {
|
||||
it('returns the same vector when lengths already match', () => {
|
||||
const input = new Float32Array([1, 2, 3, 4]);
|
||||
const output = normalizeDimensions(input, 4);
|
||||
|
||||
Reference in New Issue
Block a user