perf: some small upgrade to factor costeer to improve the performance (#420)

* 1. use dataframe.info instead of head
2. in former trace query, add the latest attempt to the last success execution

* fix CI
This commit is contained in:
Xu Yang
2024-10-10 20:29:17 +08:00
committed by GitHub
parent a1507aa7ab
commit f1a841ba14
6 changed files with 44 additions and 9 deletions
@@ -37,6 +37,7 @@ class FactorImplementSettings(BaseSettings):
v2_query_component_limit: int = 1
v2_query_error_limit: int = 1
v2_query_former_trace_limit: int = 1
v2_add_fail_attempt_to_latest_successful_execution: bool = False
v2_error_summary: bool = False
v2_knowledge_sampler: float = 1.0