add semantic search

This commit is contained in:
2024-05-31 01:31:37 -04:00
parent 53635f0d59
commit de9cccabda
19 changed files with 1398 additions and 105 deletions

10
src/hooks.server.ts Normal file
View File

@@ -0,0 +1,10 @@
import { getModel } from '$lib/utils/search';
import { building } from '$app/environment';
if (!building) {
getModel().catch((error) => {
console.error('Failed to load the TensorFlow model at startup:', error);
});
console.log('Model loaded successfully!');
}