知识卡片
词元属性规则可组合模糊匹配
Matcher按token属性写规则,可对LOWER等字段结合FUZZY1识别最多一次编辑距离的变体。它用于文字模式,不自动理解全部语义;分词、误匹配和阈值应以实际样例核验,也不能保证比所有其他护栏精确。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
Asking an LLM to do what you want isn’t the same as ensuring it does what you want. And that’s exactly what a rule-based guardrail system is supposed to do for you. In a production application, or where robustness and reliability are important, you will want to come up with guardrail rules that leverage linguistics algorithms directly. SpaCy Matcher lingustic pattern matchers will improve the
参考来源
- 位置:《Natural Language Processing in Action, Second Edition》第10章《真实世界中的大语言模型》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-10.html)
- 结论依据:摘录中关于词元属性规则可组合模糊匹配的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:Asking an LLM to do what you want isn’t the same as ensuring it does what you want. And that’s exactly what a rule-based guardrail system is supposed to do for you. In a production application, or where robustness and reliability are important, you will want to come up with guardrail rules that leverage linguistics algorithms directly. SpaCy Matcher lingustic pattern matchers will improve the