mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Addessed PR comments
This commit is contained in:
parent
d01ce48c97
commit
470380993d
2 changed files with 2 additions and 48 deletions
|
@ -632,52 +632,6 @@ fn llm_prompt<'a, I: Iterator<Item = &'a ModuleDocumentation>>(
|
|||
}
|
||||
}
|
||||
}
|
||||
buf.push_str("## Instructions:\n\n");
|
||||
buf.push_str(
|
||||
format!(
|
||||
"You are an expert in the Roc programming library, `{}`.\n",
|
||||
package_name
|
||||
)
|
||||
.as_str(),
|
||||
);
|
||||
buf.push_str(
|
||||
format!(
|
||||
"Your task is to answer questions **only based on the official documentation** of the `{}` Roc library.\n",
|
||||
package_name
|
||||
)
|
||||
.as_str(),
|
||||
);
|
||||
buf.push_str("If the documentation does not contain relevant information to answer the question, explicitly state: ");
|
||||
buf.push_str(
|
||||
format!(
|
||||
"**I do not know, as this is not covered in the official documentation of `{}`.**\n",
|
||||
package_name
|
||||
)
|
||||
.as_str(),
|
||||
);
|
||||
|
||||
buf.push_str("## Example Responses:\n\n");
|
||||
|
||||
if !example_type_question_buf.is_empty() {
|
||||
buf.push_str(example_type_question_buf.as_str());
|
||||
}
|
||||
|
||||
if !example_description_question_buf.is_empty() {
|
||||
buf.push_str(example_description_question_buf.as_str());
|
||||
}
|
||||
|
||||
buf.push_str("**Gap in Documentation Question Example**\n\n");
|
||||
buf.push_str("**Question:**\n");
|
||||
buf.push_str("What's your favorite animal?\n\n");
|
||||
buf.push_str("**Response:**\n");
|
||||
buf.push_str(
|
||||
format!(
|
||||
"I do not know, as this is not covered in the official documentation of `{}`.\n\n",
|
||||
package_name
|
||||
)
|
||||
.as_str(),
|
||||
);
|
||||
|
||||
buf
|
||||
}
|
||||
|
||||
|
|
|
@ -56,8 +56,8 @@
|
|||
</ul>
|
||||
</form>
|
||||
<div id="llm-prompt-container">
|
||||
<a id="llm-prompt-link" href="llms.txt">
|
||||
🤖 LLM Prompt 🤖
|
||||
<a id="llm-prompt-link" href="llms.txt" title="Documentation in a LLM friendly format">
|
||||
LLM docs
|
||||
</a>
|
||||
</div>
|
||||
<div class="top-header-triangle">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue