Conversation
New doc_verification.py + Rag.add_corpus(verify=True) flag: inspect uploaded documents for forensic authenticity (tamper risk band + per-signal evidence) and AI-written-prose probability before their text enters the corpus. Verdicts stored in Rag.source_verification keyed by file path for UI/API display. - Off by default (verify=False), zero behavior change - Best-effort: verification failures logged, corpus unaffected - Free anonymous tier, no signup; STIPPLE_API_KEY for own metering Live-verified: minimal PDF -> risk_band low + warrant id.
Owner
|
Hi @Sketchjar,感谢你的贡献和详细的说明! 关于这个 PR,有几点想法想和你讨论一下: 1. 关于引入外部第三方服务 这个功能的核心是把用户上传的文档发送到外部服务 如果确实有类似需求,更合适的方式可能是:
2. 代码实现上的一些建议
再次感谢你的提交,也欢迎针对以上几点继续讨论!如果你有兴趣把这个改造成通用的、不绑定单一服务商的插件式方案,我们很乐意继续看看。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
""" + body + """