mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-06-07 23:43:56 +02:00
more for templates
This commit is contained in:
+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