Cleanup/code cleanup 2026 03 (#45)

* chore: cleanup of unused exports and stuff

* fix: media and languages was broken for english media

* fix: embedding model load was broken on standalone

---------

Co-authored-by: hugo <hugoms@me.com>
This commit is contained in:
Georg Bauer
2026-03-10 19:54:38 +01:00
committed by GitHub
parent 4f9be93c6d
commit 1b4ab08c37
60 changed files with 176 additions and 1696 deletions

View File

@@ -138,6 +138,7 @@ function createMockPipeline(): EmbeddingPipeline {
function makeEngine(tmpDir: string): EmbeddingEngine {
return new EmbeddingEngine({
getIndexPath: (projectId: string) => path.join(tmpDir, `${projectId}.usearch`),
modelCacheDir: path.join(tmpDir, 'model-cache'),
createPipeline: async () => createMockPipeline(),
});
}