fix: fix a typo (#362)

This commit is contained in:
WinstonLiyt
2024-09-27 02:15:28 +08:00
committed by GitHub
parent bc5e779d5b
commit 377b56ff20
@@ -94,7 +94,7 @@ class KGHypothesisGen(ModelHypothesisGen):
self.initial_performance = 0.0
def generate_RAG_content(self, trace: Trace, hypothesis_and_feedback: str) -> str:
if self.scem.if_using_vector_rag:
if self.scen.if_using_vector_rag:
rag_results, _ = self.scen.vector_base.search_experience(hypothesis_and_feedback, topk_k=5)
return "\n".join([doc.content for doc in rag_results])
if self.scen.if_using_graph_rag is False or trace.knowledge_base is None: