Skip to content

Commit

Permalink
Addessed PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkonecn committed Nov 4, 2024
1 parent d01ce48 commit 4703809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 48 deletions.
46 changes: 0 additions & 46 deletions crates/docs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions crates/docs/src/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 4703809

Please sign in to comment.