fix: fix pickle problem (#140)

* fix pickle problem

* CI

* CI

* CI

* CI

* CI
This commit is contained in:
you-n-g
2024-08-01 14:56:03 +08:00
committed by GitHub
parent 8a2f3a9e7f
commit dd4f46e209
4 changed files with 57 additions and 6 deletions
@@ -213,10 +213,11 @@ class FactorQueriedGraphKnowledge(FactorQueriedKnowledge):
class FactorGraphRAGStrategy(RAGStrategy):
prompt = Prompts(file_path=Path(__file__).parent.parent / "prompts.yaml")
def __init__(self, knowledgebase: FactorGraphKnowledgeBase) -> None:
super().__init__(knowledgebase)
self.current_generated_trace_count = 0
self.prompt = Prompts(file_path=Path(__file__).parent.parent / "prompts.yaml")
def generate_knowledge(
self,