Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -154,10 +154,10 @@ def crewai_process(research_topic):
|
|
| 154 |
task4 = Task(
|
| 155 |
description=f"""From {research_topic} analyze groundedness, hallucination and give the HIN number
|
| 156 |
which is groundedness times hallucination. For groundedness score: If a sensor is not working give
|
| 157 |
-
it a 0, if a sensor is working give it a 1, if a sensor needs to be tunend is partially working give
|
| 158 |
it a .5. Add up the numbers and divide by the total number of sensors. For hallucination score:
|
| 159 |
-
If sensor is not working give it a 0, if a sensor is working give it a 1, if sensor needs to be tuned
|
| 160 |
-
|
| 161 |
Calculate HIN score: which is groundedness score times halluciation score. Use Anthropic and Gemini to propose other sensors needed or fixes to sensors. BE VERBOSE.""",
|
| 162 |
expected_output='HIN score, Groundedness score, Hallucination score and suggestion on how to fix sensors and what new sensors need to be added to alleviate described issues',
|
| 163 |
agent=HINAnalyst,
|
|
|
|
| 154 |
task4 = Task(
|
| 155 |
description=f"""From {research_topic} analyze groundedness, hallucination and give the HIN number
|
| 156 |
which is groundedness times hallucination. For groundedness score: If a sensor is not working give
|
| 157 |
+
it a 0, if a sensor is working correctly give it a 1, if a sensor needs to be tunend is partially working give
|
| 158 |
it a .5. Add up the numbers and divide by the total number of sensors. For hallucination score:
|
| 159 |
+
If sensor is not working give it a 0, if sensor is partially working give it a .2, if a sensor is working give it a 1, if sensor needs to be tuned
|
| 160 |
+
correctly give it a 1. Add up the numbers and divide by the total number of sensors.
|
| 161 |
Calculate HIN score: which is groundedness score times halluciation score. Use Anthropic and Gemini to propose other sensors needed or fixes to sensors. BE VERBOSE.""",
|
| 162 |
expected_output='HIN score, Groundedness score, Hallucination score and suggestion on how to fix sensors and what new sensors need to be added to alleviate described issues',
|
| 163 |
agent=HINAnalyst,
|