Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
{ describe, it } from
"node:test"
;
2
import
assert from
"node:assert/strict"
;
3
import
{ Ollama } from
"ollama"
;
4
import
{ mkdtemp, rm } from
"node:fs/promises"
;
Callers
nothing calls this directly
Calls
4
getEmbeddingBatchSize
Function · 0.85
fetchEmbedding
Function · 0.85
getDocumentCount
Method · 0.80
index
Method · 0.80
Tested by
no test coverage detected