@the-brain/core 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research-answer.prompt.d.ts","sourceRoot":"","sources":["../../../../src/services/ai/prompts/research-answer.prompt.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,GACjC,UAAU,MAAM,EAChB,SAAS,MAAM,EACf,cAAc;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,KAChD,
|
|
1
|
+
{"version":3,"file":"research-answer.prompt.d.ts","sourceRoot":"","sources":["../../../../src/services/ai/prompts/research-answer.prompt.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,GACjC,UAAU,MAAM,EAChB,SAAS,MAAM,EACf,cAAc;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,KAChD,MAgBF,CAAC"}
|
|
@@ -5,8 +5,9 @@ export const RESEARCH_ANSWER_PROMPT = (userText, context, chatHistory) => {
|
|
|
5
5
|
chatHistory.slice(-5).map(m => `${m.role === 'user' ? 'User' : 'Brain'}: ${m.content}`).join('\n') +
|
|
6
6
|
'\n';
|
|
7
7
|
}
|
|
8
|
-
return `Answer the user's question
|
|
9
|
-
|
|
8
|
+
return `Answer the user's question using ONLY the information from the memory context below.
|
|
9
|
+
Do NOT use any outside knowledge. If the context does not contain the answer, say exactly: "Nie mam tej informacji w pamięci."
|
|
10
|
+
Do NOT invent article numbers, laws, or facts that are not explicitly present in the context.
|
|
10
11
|
${history}
|
|
11
12
|
MEMORY CONTEXT:
|
|
12
13
|
${context}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research-answer.prompt.js","sourceRoot":"","sources":["../../../../src/services/ai/prompts/research-answer.prompt.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,QAAgB,EAChB,OAAe,EACf,WAAiD,EACzC,EAAE;IACV,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1C,OAAO,GAAG,2BAA2B;YACnC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;YAClG,IAAI,CAAC;IACT,CAAC;IAED,OAAO
|
|
1
|
+
{"version":3,"file":"research-answer.prompt.js","sourceRoot":"","sources":["../../../../src/services/ai/prompts/research-answer.prompt.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,QAAgB,EAChB,OAAe,EACf,WAAiD,EACzC,EAAE;IACV,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1C,OAAO,GAAG,2BAA2B;YACnC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;YAClG,IAAI,CAAC;IACT,CAAC;IAED,OAAO;;;EAGP,OAAO;;EAEP,OAAO;;QAED,QAAQ,EAAE,CAAC;AACnB,CAAC,CAAC"}
|