forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

rag-copy.test.ts7 lines, 480 bytesHistoryRawDownload
1import { ragCopy } from "./rag-copy";
2
3it("puts the documented abstention codes in plain words and leaves unknown ones as they are", () => {
4 expect(ragCopy("tr").abstainedReason("insufficient_data")).toBe("Neden: ders içeriklerinde bunu yanıtlayacak kadar bilgi yok");
5 expect(ragCopy("en").abstainedReason("guard_pii")).toBe("Reason: the question was stopped by the content rules");
6 expect(ragCopy("tr").abstainedReason("something_new")).toBe("Neden: something_new");
7});