parent
3a88bb9579
commit
26781ef325
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,11 @@
|
|||||||
class PromptRefiner:
|
class PromptRefiner:
|
||||||
|
|
||||||
def __init__(self, system_prompt: str, llm):
|
def __init__(self, system_prompt: str, llm):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.system_prompt = system_prompt
|
self.system_prompt = system_prompt
|
||||||
self.llm = llm
|
self.llm = llm
|
||||||
|
|
||||||
def run(self, task: str):
|
def run(self, task: str):
|
||||||
refine = self.llm(f"System Prompt: {self.system_prompt} Current task: {task}")
|
refine = self.llm(
|
||||||
|
f"System Prompt: {self.system_prompt} Current task: {task}")
|
||||||
return refine
|
return refine
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue