Files
infio-copilot/src/settings/versions/v1/few-shot-examples/math-block-multiline.ts
duanfuxiang 0c7ee142cb init
2025-01-05 11:51:39 +08:00

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;