refactoring and clean up
This commit is contained in:
@@ -2,14 +2,9 @@ const memory = require('../services/memory');
|
||||
const inference = require('../services/inference');
|
||||
const embedding = require('../services/embedding');
|
||||
const qdrant = require('../services/qdrant');
|
||||
const { ORCHESTRATION } = require('@nexusai/shared')
|
||||
|
||||
const SYSTEM_PROMPT = `You are a helpful, context-aware AI assistant.
|
||||
You have access to memories of past conversations with the user.
|
||||
Use them to provide consistent, personalised responses.`;
|
||||
|
||||
const RECENT_EPISODE_LIMIT = 5; // Number of recent episodes to retrieve for context
|
||||
const SEMANTIC_LIMIT = 5;
|
||||
const SCORE_THRESHOLD = 0.75;
|
||||
const { RECENT_EPISODE_LIMIT, SEMANTIC_LIMIT, SCORE_THRESHOLD, SYSTEM_PROMPT } = ORCHESTRATION;
|
||||
|
||||
function buildPrompt(recentEpisodes, semanticEpisodes, userMessage) {
|
||||
const parts = [SYSTEM_PROMPT];
|
||||
|
||||
Reference in New Issue
Block a user