Addessed PR comments

This commit is contained in:
John Konecny 2024-11-04 09:38:52 -05:00
parent d01ce48c97
commit 470380993d
No known key found for this signature in database
GPG key ID: E2BE1C73CA4FE2E7
2 changed files with 2 additions and 48 deletions

View file

@ -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
}

View file

@ -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">