Skip to content

Commit

Permalink
probe: missing newline in `latentinjection.LatentInjectionFactSnippet…
Browse files Browse the repository at this point in the history
…Eiffel` (#938)
  • Loading branch information
leondz authored Oct 2, 2024
2 parents 1e58295 + 04ff61e commit 0467615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garak/probes/latentinjection.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def __init__(self, config_root=_config):
self.contexts.append(
"\n".join(self.paragraphs[:i])
+ f"\n{INJECTION_MARKER}\n"
+ "".join(self.paragraphs[i:])
+ "\n".join(self.paragraphs[i:])
)

self._build_prompts_triggers()
Expand Down

0 comments on commit 0467615

Please sign in to comment.