Added semantic layer, QDrant collection initialization implemented

This commit is contained in:
Storme-bit
2026-04-04 07:46:26 -07:00
parent 5f81b0d2c7
commit cbc36c2416
2 changed files with 123 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ const express = require('express');
const {getEnv} = require('@nexusai/shared');
const { getDB } = require('./db');
const episodic = require('./episodic');
const semantic = require('./semantic');
const app = express();
app.use(express.json());
@@ -12,6 +13,10 @@ const PORT = getEnv('PORT', '3002'); // Default to 3002 if PORT is not set
//initialize database on startup
const db = getDB();
semantic.initCollections()
.then(() => console.log(`QDrant collections ready`))
.catch(err => console.error(`QDrant initialization error:`, err.message));
// Health check endpoint
app.get('/health', (req, res) => {
res.json({ service: 'Memory Service', status: 'healthy' });