Create Relay Bot MVP
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
INSTRUCTION_MARKER = "<UNTRUSTED_DATA>"
|
||||
|
||||
|
||||
def wrap_untrusted(source: str, text: str) -> str:
|
||||
"""Make the data boundary explicit for the model; source text is never authority."""
|
||||
return f"{INSTRUCTION_MARKER}\nsource: {source}\n{text}\n</UNTRUSTED_DATA>"
|
||||
|
||||
|
||||
def requires_human_decision(classification) -> bool:
|
||||
return classification.asks_new_decision or classification.blocker
|
||||
Reference in New Issue
Block a user