Skip to content

Commit

Permalink
fix: rag save file (#385)
Browse files Browse the repository at this point in the history
* debug vector base
  • Loading branch information
taozhiwang authored Sep 29, 2024
1 parent b8fe62c commit 1cb01dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rdagent/scenarios/kaggle/developer/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def generate_feedback(self, exp: Experiment, hypothesis: Hypothesis, trace: Trac

if self.scen.if_using_vector_rag:
self.scen.vector_base.add_experience_to_vector_base(experiment_feedback)
self.scen.vector_base.save()
self.scen.vector_base.dump()
elif self.scen.if_using_graph_rag:
trace.knowledge_base.add_document(experiment_feedback, self.scen)

Expand Down
2 changes: 1 addition & 1 deletion rdagent/scenarios/kaggle/experiment/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, competition: str) -> None:
if self.if_using_vector_rag and KAGGLE_IMPLEMENT_SETTING.rag_path:
self.vector_base = KaggleExperienceBase(KAGGLE_IMPLEMENT_SETTING.rag_path)
self.vector_base.path = datetime.now(timezone.utc).strftime("%Y-%m-%d-%H-%M-%S") + "_kaggle_kb.pkl"
self.vector_base.save()
self.vector_base.dump()

self._output_format = self.output_format
self._interface = self.interface
Expand Down

0 comments on commit 1cb01dd

Please sign in to comment.