Skip to content

Commit d9c44bf

Browse files
committed
Improved prompts
1 parent a89f01b commit d9c44bf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ export namespace PromptFactory {
171171
<CODEBASE_START>
172172
${codebase}
173173
<CODEBASE_END>
174-
<TARGET_ENTITY_START>${targetEntity}
174+
<TARGET_ENTITY_START>
175+
${targetEntity}
175176
<TARGET_ENTITY_END>.`
176177
);
177178

@@ -229,7 +230,7 @@ export namespace PromptFactory {
229230
- ALWAYS explain where and why it's used in the codebase with due reasoning and mention of the file and line number.
230231
</EXPLANATION>
231232
<DIAGRAM>
232-
- You only provide flowchart or sequence diagram in the mermaid 8.9.0 format.
233+
- You only provide flowchart or sequence diagram in the Ditaa format.
233234
- The diagram must be clear and understandable for the user. The aim is to make it easy for the user to understand the flow & overall working.
234235
- The output must not have any kind of errors and must render properly.
235236
</DIAGRAM>
@@ -244,7 +245,7 @@ export namespace PromptFactory {
244245
- The output MUST BE IN ONLY AND ONLY IN THE ABOVE SPECIFIED FORMAT.
245246
`);
246247
prompt.pushUser(
247-
`Hey can you explain why this \`${query}\` entity is used in the following codebase? Here's the codebase:
248+
`Hey can you explain why this \`${query}\` entity is used & is useful in the following codebase? Here's the codebase:
248249
249250
<CODEBASE_START>
250251
${codebase}

0 commit comments

Comments
 (0)