You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/scala/functorcoder/llm/llmPrompt.scala
+6-29Lines changed: 6 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ object llmPrompt {
51
51
caseclassCompletion(
52
52
codeWithHole: String, // code with a hole to fill like {{FILL_HERE}}
53
53
// taskRequirement: String, // like "Fill the {{FILL_HERE}} hole."
54
-
assistantMessage: String= promptText.prompt1
54
+
assistantMessage: String= promptText.promptComp1
55
55
) extendsPrompt(assistantMessage) {
56
56
defgeneratePrompt= {
57
57
@@ -87,14 +87,14 @@ object llmPrompt {
87
87
caseclassCreateFiles(
88
88
userRequest: String,
89
89
assistantMessage: String=
90
-
s"You are given a user requirement wrapped in ${tagsInUse.queryStart} and ${tagsInUse.queryEnd}, and a TASK requirement ${tagsInUse.task}. "+
91
-
"You are going to return the code snippet according to the TASK requirement. "
90
+
s"an input is wrapped in ${tagsInUse.queryStart} and ${tagsInUse.queryEnd}, and the requirement is inside${tagsInUse.task}. "+
91
+
"from input and requirement, You return the code snippet"
92
92
) extendsPrompt(assistantMessage) {
93
93
defgeneratePrompt= {
94
94
importfunctorcoder.algo.treeParse
95
95
96
96
valtask=
97
-
s"parse the prompt response to tree of files and folders in the format: ${treeParse.exampleSyntax}. An example input is: ${treeParse.exampleInput}. return the tree data structure in that format."
97
+
s" return tree of files and folders in the format: ${treeParse.exampleSyntax}. An example input is: ${treeParse.exampleInput}. return the tree data structure in that format."
98
98
99
99
s"""${tagsInUse.queryStart}
100
100
|${userRequest}
@@ -110,12 +110,12 @@ object llmPrompt {
110
110
*/
111
111
objectpromptText {
112
112
valhole="{{FILL_HERE}}"
113
-
valprompt1=
113
+
valpromptComp1=
114
114
"You are a code or text autocompletion assistant. "+
115
115
s"In the provided input, missing code or text are marked as $hole. "+
116
116
"Your task is to output only the snippet that replace the placeholder, "+
117
117
"ensuring that indentation and formatting remain consistent with the context. Don't quote your output"
0 commit comments