mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-10-04 15:26:51 +02:00
more for templates
This commit is contained in:
1 parent
1dba565236
commit
f3dd8e9208
4 files changed
+7
-6
No files matched your search
+1
-1
@@ -26,7 +26,7 @@ class ChainOfThoughtSecurityGuidelinesService(
|
||||
|
||||
def _create_chain(self, prompt_template: PromptTemplate):
|
||||
return (
|
||||
{ "question": RunnablePassthrough() }
|
||||
{ f"{self.constants.INPUT_VARIABLE_TOKEN}": RunnablePassthrough() }
|
||||
| prompt_template
|
||||
| self.foundation_model_pipeline
|
||||
| StrOutputParser()
|
||||
|
||||
@@ -26,7 +26,7 @@ class RetrievalAugmentedGenerationContextSecurityGuidelinesService(
|
||||
|
||||
def _create_chain(self, prompt_template: PromptTemplate):
|
||||
return (
|
||||
{ "question": RunnablePassthrough() }
|
||||
{ f"{self.constants.INPUT_VARIABLE_TOKEN}": RunnablePassthrough() }
|
||||
| prompt_template
|
||||
| self.foundation_model_pipeline
|
||||
| StrOutputParser()
|
||||
|
||||
Reference in new issue
Block a user