|
|
|
@ -1,6 +1,5 @@
|
|
|
|
from swarms.structs.llm_council import LLMCouncil
|
|
|
|
from swarms.structs.llm_council import LLMCouncil
|
|
|
|
|
|
|
|
|
|
|
|
# Example usage of the LLM Council without a function:
|
|
|
|
|
|
|
|
# Create the council
|
|
|
|
# Create the council
|
|
|
|
council = LLMCouncil(verbose=True)
|
|
|
|
council = LLMCouncil(verbose=True)
|
|
|
|
|
|
|
|
|
|
|
|
@ -14,9 +13,6 @@ result = council.run(query)
|
|
|
|
print(result["final_response"])
|
|
|
|
print(result["final_response"])
|
|
|
|
|
|
|
|
|
|
|
|
# Optionally print evaluations
|
|
|
|
# Optionally print evaluations
|
|
|
|
print("\n\n" + "="*80)
|
|
|
|
|
|
|
|
print("EVALUATIONS")
|
|
|
|
|
|
|
|
print("="*80)
|
|
|
|
|
|
|
|
for name, evaluation in result["evaluations"].items():
|
|
|
|
for name, evaluation in result["evaluations"].items():
|
|
|
|
print(f"\n{name}:")
|
|
|
|
print(f"\n{name}:")
|
|
|
|
print(evaluation[:500] + "..." if len(evaluation) > 500 else evaluation)
|
|
|
|
print(evaluation[:500] + "..." if len(evaluation) > 500 else evaluation)
|
|
|
|
|