MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / embeddings.test.mjs

File embeddings.test.mjs

test/main/embeddings.test.mjs:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, it } from "node:test";
2import assert from "node:assert/strict";
3import { Ollama } from "ollama";
4import { mkdtemp, rm } from "node:fs/promises";

Callers

nothing calls this directly

Calls 4

getEmbeddingBatchSizeFunction · 0.85
fetchEmbeddingFunction · 0.85
getDocumentCountMethod · 0.80
indexMethod · 0.80

Tested by

no test coverage detected