Added semantic layer, QDrant collection initialization implemented
This commit is contained in:
@@ -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' });
|
||||
|
||||
Reference in New Issue
Block a user