Skip to content

Commit 41f4cd2

Browse files
committed
Fixed prompt of /rcc-document
1 parent 8a181ef commit 41f4cd2

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

ai-assistant/src/core/prompt/prompt.factory.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,10 @@ export namespace PromptFactory {
5656
query: string
5757
): Prompt {
5858
const prompt = new Prompt();
59-
6059
prompt.pushSystem(PROMPT_DOCUMENT_COMMAND);
61-
prompt.pushAssistant(
62-
"Sure, I will strictly follow my instructions. The output will be in the above format only."
63-
);
64-
prompt.pushSystem(`
65-
HERE'RE THE NODES OF THE CODEBASE TO USE AS CONTEXT:
66-
<CODEBASE_START>
67-
${codebase}
68-
</CODEBASE_END>
69-
`);
70-
prompt.pushAssistant(
71-
"Yeah sure. I understand this codebase very well and I am able to generate JSDoc & documentation for the target entity."
60+
prompt.pushUser(
61+
`<CODEBASE_START>\n${codebase}\n<CODEBASE_END>\n\nTarget Entity: ${query}`
7262
);
73-
prompt.pushUser(query);
7463

7564
return prompt;
7665
}

0 commit comments

Comments
 (0)