@ -17,7 +17,7 @@ import { env } from "../../server/env.js";
// ConsistencyLevelEnum,
// ConsistencyLevelEnum,
// type NumberArrayId,
// type NumberArrayId,
// } from "@zilliz/milvus2-sdk-node";
// } from "@zilliz/milvus2-sdk-node";
import{db}from"../../database/lowdb";
import{db,typeFact}from"../../database/lowdb";
import{nanoid}from"nanoid";
import{nanoid}from"nanoid";
constmainSystemPrompt=({
constmainSystemPrompt=({
@ -30,6 +30,15 @@ This is a summary of the conversation so far, from your point-of-view (so "I" an
${previousRunningSummary}
${previousRunningSummary}
</running_summary>
</running_summary>
`;
`;
constfactsFromUserMessageSystemPrompt=({
previousRunningSummary,
}:{
previousRunningSummary: string;
})=>`Given the following summary of a conversation, coupled with the messages exchanged since that summary was produced, extract new facts that can be gleaned from the conversation.
exportconstdefaultSystemPrompt=`You are a helpful assistant that answers questions based on the provided context. If you don't know the answer, just say that you don't know, don't try to make up an answer.`;
exportconstdefaultSystemPrompt=`You are a helpful assistant that answers questions based on the provided context. If you don't know the answer, just say that you don't know, don't try to make up an answer.`;