File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 2
2
from crewai import Agent
3
3
from crewai import Task
4
4
from crewai import Crew , Process , LLM
5
- from crewai .cli .constants import DEFAULT_LLM_MODEL
6
5
from crewai_tools import MongoDBVectorSearchTool , MongoDBVectorSearchConfig
7
6
from langchain_community .document_loaders import PyPDFLoader
8
7
import time
55
54
role = "AI Accuracy Researcher" ,
56
55
goal = "Find and extract key information from a technical document" ,
57
56
backstory = "You're specialized in analyzing technical content to extract insights and answers" ,
58
- verbose = False ,
57
+ verbose = True ,
59
58
tools = [tool ],
60
- llm = LLM (model = f "azure/{ DEFAULT_LLM_MODEL } " ),
59
+ llm = LLM (model = "azure/gpt-4o" , seed = 12345 ),
61
60
)
62
61
research_task = Task (
63
62
description = "Research information in a technical document" ,
68
67
agents = [researcher ],
69
68
tasks = [research_task ],
70
69
process = Process .sequential ,
71
- verbose = False ,
70
+ verbose = True ,
72
71
)
73
72
74
73
# Get the result and assert something about the results
75
74
print ("Running the crew..." )
76
75
result = crew .kickoff ()
77
76
text = result .raw .lower ()
78
- assert "advancements" in text or "improvements " in text , text
77
+ assert "limitations " in text , text
79
78
assert "GPT-4" in result .raw
You can’t perform that action at this time.
0 commit comments