Skip to content

Commit

Permalink
add fact_check_agent
Browse files Browse the repository at this point in the history
  • Loading branch information
qingzhong1 committed Jan 17, 2024
1 parent 338a634 commit ab68b13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ async def check_claim(self, question: str, answer: str, claim: str):

async def verifications(self, facts_problems: List[dict]):
"""
Use external knowledge to answer facts to answer questions,
and use the answers to questions to determine whether the facts are correct
Answer questions using external knowledge and then use the answers to the questions to verify
relevant facts. As it processes each question and fact pair, it obtains the context
relevant to the question, generates an answer to the question, checks whether the fact
is correct, and records the verification results.
"""
for item in facts_problems:
question = item["question"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,7 @@ def get_agents(retriever_sets, tool_sets, llm, llm_long):
dir_path=target_path,
report_type=args.report_type,
)
checker_actor = FactCheckerAgent(
name="fact_check",
llm=llm,
retriever_db=retriever_sets["full_text"]
)
checker_actor = FactCheckerAgent(name="fact_check", llm=llm, retriever_db=retriever_sets["full_text"])
ranker_actor = RankingAgent(
llm=llm,
llm_long=llm_long,
Expand Down

0 comments on commit ab68b13

Please sign in to comment.