mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-15 20:21:38 +00:00
20 lines
729 B
TypeScript
20 lines
729 B
TypeScript
import Context from "../../../../core/autocomplete/context-detection";
|
|
import { FewShotExample } from "../../index";
|
|
|
|
const messages: FewShotExample = {
|
|
context: Context.MathBlock,
|
|
input: String.raw`# Sample mean
|
|
The sample mean, or sometime called average, is defined as:
|
|
|
|
$$
|
|
sample\_mean(x) = <mask/>
|
|
$$
|
|
The average value has the property that 50% of the weighted* value will be above and below it. This weighted property can make it more sensitive to outliers than the median.
|
|
`,
|
|
answer: String.raw`THOUGHT: The text is about sample mean; the math block needs LaTeX for the sum of observations divided by the number of observations.
|
|
LANGUAGE: LaTeX, English
|
|
ANSWER: \frac{1}{n} \sum_i^n x_i`,
|
|
};
|
|
|
|
export default messages;
|