I’ve tested CrewAI running in Docker, but it’s performing too slowly when using the LLM.
Even after configuring max_retry_limit, max_iterations, and max_execution_time, the agent spends too much time “thinking” and repeatedly executes the same tasks, causing unnecessary delays.
How can I optimise this?
@agent
def data_retrieval_analysis_specialist(self) -> Agent:
"""Agent to respond with channel-specific knowledge."""
return Agent(
config=self.agents_config['data_retrieval_analysis_specialist'],
verbose=False,
tools=[QdrantVectorSearchTool(collection_name=self.collection_name)],
llm=self.llm,
max_retry_limit=1,
max_iterations=1,
max_execution_time=1
)
@task
def retrieve_task(self) -> Task:
"""Task to generate a friendly response using knowledge."""
return Task(
config=self.tasks_config['retrieve_task'],
output_pydantic=MessageOutput
)
@crew
def crew(self) -> Crew:
"""Define the crew with agents and tasks."""
return Crew(
agents=self.agents,
tasks=self.tasks,
verbose=True,
process=Process.sequential
)
Logs
fastapi_backend | 2025-04-01 19:59:00 | INFO | app.core.tools.qdrant_vector_search_tool:_run:65 - [QdrantVectorSearchTool] Search results: [ScoredPoint(id='f2fdf6f5-2bf1-4d9b-80e8-dff48bc5a0e1', version=0, score=0.76343733, payload={'content': 'Aroua AI\nAI-powered platform redefining business engagement through human-AI\ncollaboration. Our Brand Story\nAt Aroura, we believe in building on new ground—where innovation meets limitless\npotential. Inspired by the Ancient Greek word ἄρουρα (arable land), Aroura\nrepresents a blank canvas where businesses, brands, and individuals can grow,\nconnect, and thrive. Aroura is all about togetherness, empowerment, and making a positive impact in\neveryday life. Our brand thrives on simplicity, efficiency, and adaptability, with Aroura\ncharacters and kinetic design patterns that bring energy and movement to our\nidentity. Our Founding Story\nOur journey began at Warner Bros. Discovery, where our founder experienced this\nfirsthand while working at Warner Bros. Discovery, where users struggled to pick\nfrom a vast library of content. This challenge shaped her belief in AI-driven\npersonalization as a way to simplify choices and enhance user experiences in daily\nlife. With that vision, Aroura AI was born—to bring a smart, AI-powered assistant to\nbusinesses and individuals. We are redefining customer engagement with an\nAI-powered platform that enables businesses of all sizes—from global brands to\nindividual entrepreneurs—to interact with their customers in a deeply personalized\nand scalable way. Our focus is on delivering practical AI solutions that address real-world challenges,\nmaking a positive impact in everyday life. Competitors: Business Messaging & AI Assistants\nKakaoTalk Channels - Business messaging & marketing platform integrated into KakaoTalk,\nSouth Korea’s most popular messaging app. It enables businesses to connect with customers, promote products, and provide customer service. Key Features\n- Massive User Base - 40M+ active\nusers in South Korea\n- High Engagement - AI-powered\nbusiness interactions, but limited. - Limited to the Korean Market. - Targeted Business Messaging\n- Kakao Ad Platform\n- Commerce & Payments (KakaoTalk Store & KakaoPay)\n- Chatbot Automation & AI Integration - Kakao + OpenAI collaboration\n\nWhatsApp Channels - Community and fan-based messaging platform focused on business updates and engagement. Lacks strong AI automation. Key Features\n- No presence in the Asian market. - Limited AI automation for business\nengagement.', 'metadata': {'channel_id': 'a892ef97-71ad-474e-bbe9-e1bc4aa7349a', 'category': 'about', 'source': 'aroura.txt', 'title': 'About Aroura'}}, vector=None, shard_key=None, order_value=None), ScoredPoint(id='906995a2-6b5e-4b9b-9a24-eebe5cacdfb0', version=0, score=0.7053503, payload={'content': '- Primarily focused on\ncommunity engagement & updates. Aroura Channels- AI-powered business engagement platform connecting businesses, brands, and small individual\nbusinesses directly with customers worldwide. Focuses on delivering actionable solutions beyond just\ncreating AI agents. Key Features\n- Personalized service\nrecommendations based on user\nlifestyle & preferences. - Target Markets: UK, Korea,\nVietnam, US, Global.', 'metadata': {'channel_id': 'a892ef97-71ad-474e-bbe9-e1bc4aa7349a', 'category': 'about', 'source': 'aroura.txt', 'title': 'About Aroura'}}, vector=None, shard_key=None, order_value=None), ScoredPoint(id='242e974a-713e-40b9-90b9-3224cc03cb29', version=0, score=0.5475444, payload={'content': '- AI-driven Chatbot Automation for\nenhanced customer engagement. - Open LLMs + Customized AI\nSolutions tailored for businesses. MVP Use Cases\nCreating A Smart Assistant for Independent professionals &\nEntrepreneurs\nChallenge\nIndependent professionals, such as sport instructors, and coaches, face the\nchallenge of managing time-consuming administrative tasks like scheduling, client\nmanagement, and communication, which takes away from their ability to focus on\ndelivering quality services. These tasks create fragmented workflows, missed\nsessions, and hinder client retention. Additionally, the lack of scalable solutions for\npersonalising client interactions makes it difficult for professionals to offer tailored\nrecommendations or track engagement effectively. Many also struggle to adopt AI\ntechnologies due to unfamiliarity, and there is a need for a clear revenue model that\noffers both affordability and premium features to ensure sustained growth. Strategy\n\nOur strategy is to create an AI-powered assistant that simplifies the daily operations\nof independent professionals. By automating routine tasks such as scheduling,\nreminders, and session management, the assistant will alleviate the administrative\nburden and free up professionals to focus on delivering personalised service. The AI\nwill use client data to offer customised recommendations and optimise interactions. This solution will not only improve operational efficiency but also support long-term\ngrowth by providing a scalable, accessible AI system that adapts to business needs. Expected Outcomes\n\nThe AI-powered assistant will streamline workflows, reducing the time spent on\nadministrative tasks and allowing professionals to prioritise client-facing activities. This will enhance client satisfaction, improve retention, and increase overall business\nefficiency. By leveraging AI to analyse client data, professionals will be able to offer\nmore personalised and engaging services. In the long run, this solution will drive\nbusiness growth, improve customer loyalty, and establish a sustainable revenue\nmodel that balances accessible and premium features to scale the business. MVP Features\nDevelop a workflow framework (skeleton) that enables businesses & brands to manage core\nbusiness functions(features) efficiently. Admin Dashboard - Define business name, key features\nAdmin Panel - Enable/disable pricing, offers, scheduling, feedback\nPricing Config - Choose pricing model & create special offers\nScheduling System - Customer booking\nAI Chatbot - AI answer pricing & feature inquiries', 'metadata': {'channel_id': 'a892ef97-71ad-474e-bbe9-e1bc4aa7349a', 'category': 'about', 'source': 'aroura.txt', 'title': 'About Aroura'}}, vector=None, shard_key=None, order_value=None)]
fastapi_backend | 🚀 Crew: crew
fastapi_backend | └── 📋 Task: c2f7b2a7-857f-43d0-aebd-d358d2e16b57
fastapi_backend | Status: Executing Task...
fastapi_backend | └── 🤖 Agent: Data Retrieval & Analysis Specialist
fastapi_backend | Status: In Progress
fastapi_backend | └── 🔧 Used qdrantVectorSearchTool (1)
fastapi_backend |
fastapi_backend |
fastapi_backend |
fastapi_backend | # Agent: Data Retrieval & Analysis Specialist
fastapi_backend | ## Using tool: qdrantVectorSearchTool
fastapi_backend | ## Tool Input:
fastapi_backend | "{\"query\": \"aroura ai\"}"
fastapi_backend | ## Tool Output:
fastapi_backend | [
fastapi_backend | {
fastapi_backend | "metadata": {
fastapi_backend | "channel_id": "a892ef97-71ad-474e-bbe9-e1bc4aa7349a",
fastapi_backend | "category": "about",
fastapi_backend | "source": "aroura.txt",
fastapi_backend | "title": "About Aroura"
fastapi_backend | },
fastapi_backend | "context": "Aroua AI\nAI-powered platform redefining business engagement through human-AI\ncollaboration. Our Brand Story\nAt Aroura, we believe in building on new ground\u2014where innovation meets limitless\npotential. Inspired by the Ancient Greek word \u1f04\u03c1\u03bf\u03c5\u03c1\u03b1 (arable land), Aroura\nrepresents a blank canvas where businesses, brands, and individuals can grow,\nconnect, and thrive. Aroura is all about togetherness, empowerment, and making a positive impact in\neveryday life. Our brand thrives on simplicity, e\ufb03ciency, and adaptability, with Aroura\ncharacters and kinetic design patterns that bring energy and movement to our\nidentity. Our Founding Story\nOur journey began at Warner Bros. Discovery, where our founder experienced this\nfirsthand while working at Warner Bros. Discovery, where users struggled to pick\nfrom a vast library of content. This challenge shaped her belief in AI-driven\npersonalization as a way to simplify choices and enhance user experiences in daily\nlife. With that vision, Aroura AI was born\u2014to bring a smart, AI-powered assistant to\nbusinesses and individuals. We are redefining customer engagement with an\nAI-powered platform that enables businesses of all sizes\u2014from global brands to\nindividual entrepreneurs\u2014to interact with their customers in a deeply personalized\nand scalable way. Our focus is on delivering practical AI solutions that address real-world challenges,\nmaking a positive impact in everyday life. Competitors: Business Messaging & AI Assistants\nKakaoTalk Channels - Business messaging & marketing platform integrated into KakaoTalk,\nSouth Korea\u2019s most popular messaging app. It enables businesses to connect with customers, promote products, and provide customer service. Key Features\n- Massive User Base - 40M+ active\nusers in South Korea\n- High Engagement - AI-powered\nbusiness interactions, but limited. - Limited to the Korean Market. - Targeted Business Messaging\n- Kakao Ad Platform\n- Commerce & Payments (KakaoTalk Store & KakaoPay)\n- Chatbot Automation & AI Integration - Kakao + OpenAI collaboration\n\nWhatsApp Channels - Community and fan-based messaging platform focused on business updates and engagement. Lacks strong AI automation. Key Features\n- No presence in the Asian market. - Limited AI automation for business\nengagement.",
fastapi_backend | "score": 0.76343733
fastapi_backend | },
fastapi_backend | {
fastapi_backend | "metadata": {
fastapi_backend | "channel_id": "a892ef97-71ad-474e-bbe9-e1bc4aa7349a",
fastapi_backend | "category": "about",
fastapi_backend | "source": "aroura.txt",
fastapi_backend | "title": "About Aroura"
fastapi_backend | },
fastapi_backend | "context": "- Primarily focused on\ncommunity engagement & updates. Aroura Channels- AI-powered business engagement platform connecting businesses, brands, and small individual\nbusinesses directly with customers worldwide. Focuses on delivering actionable solutions beyond just\ncreating AI agents. Key Features\n- Personalized service\nrecommendations based on user\nlifestyle & preferences. - Target Markets: UK, Korea,\nVietnam, US, Global.",
fastapi_backend | "score": 0.7053503
fastapi_backend | },
fastapi_backend | {
fastapi_backend | "metadata": {
fastapi_backend | "channel_id": "a892ef97-71ad-474e-bbe9-e1bc4aa7349a",
fastapi_backend | "category": "about",
fastapi_backend | "source": "aroura.txt",
fastapi_backend | "title": "About Aroura"
fastapi_backend | },
fastapi_backend | "context": "- AI-driven Chatbot Automation for\nenhanced customer engagement. - Open LLMs + Customized AI\nSolutions tailored for businesses. MVP Use Cases\nCreating A Smart Assistant for Independent professionals &\nEntrepreneurs\nChallenge\nIndependent professionals, such as sport instructors, and coaches, face the\nchallenge of managing time-consuming administrative tasks like scheduling, client\nmanagement, and communication, which takes away from their ability to focus on\ndelivering quality services. These tasks create fragmented workflows, missed\nsessions, and hinder client retention. Additionally, the lack of scalable solutions for\npersonalising client interactions makes it difficult for professionals to offer tailored\nrecommendations or track engagement effectively. Many also struggle to adopt AI\ntechnologies due to unfamiliarity, and there is a need for a clear revenue model that\noffers both affordability and premium features to ensure sustained growth. Strategy\n\nOur strategy is to create an AI-powered assistant that simplifies the daily operations\nof independent professionals. By automating routine tasks such as scheduling,\nreminders, and session management, the assistant will alleviate the administrative\nburden and free up professionals to focus on delivering personalised service. The AI\nwill use client data to offer customised recommendations and optimise interactions. This solution will not only improve operational efficiency but also support long-term\ngrowth by providing a scalable, accessible AI system that adapts to business needs. Expected Outcomes\n\nThe AI-powered assistant will streamline workflows, reducing the time spent on\nadministrative tasks and allowing professionals to prioritise client-facing activities. This will enhance client satisfaction, improve retention, and increase overall business\nefficiency. By leveraging AI to analyse client data, professionals will be able to offer\nmore personalised and engaging services. In the long run, this solution will drive\nbusiness growth, improve customer loyalty, and establish a sustainable revenue\nmodel that balances accessible and premium features to scale the business. MVP Features\nDevelop a workflow framework (skeleton) that enables businesses & brands to manage core\nbusiness functions(features) efficiently. Admin Dashboard - Define business name, key features\nAdmin Panel - Enable/disable pricing, offers, scheduling, feedback\nPricing Config - Choose pricing model & create special offers\nScheduling System - Customer booking\nAI Chatbot - AI answer pricing & feature inquiries",
fastapi_backend | "score": 0.5475444
fastapi_backend | }
fastapi_backend | ]
fastapi_backend | 🚀 Crew: crew
fastapi_backend | └── 📋 Task: c2f7b2a7-857f-43d0-aebd-d358d2e16b57
fastapi_backend | Status: Executing Task...
fastapi_backend | └── 🤖 Agent: Data Retrieval & Analysis Specialist
fastapi_backend | Status: In Progress
fastapi_backend | ├── 🔧 Used qdrantVectorSearchTool (1)
fastapi_backend | └── 🧠 Thinking...
fastapi_backend |
fastapi_ollama | [GIN] 2025/04/01 - 19:59:59 | 200 | 59.023888028s | 172.18.0.3 | POST "/api/generate"
fastapi_backend | 🚀 Crew: crew
fastapi_backend | └── 📋 Task: c2f7b2a7-857f-43d0-aebd-d358d2e16b57
fastapi_backend | Status: Executing Task...
fastapi_backend | └── 🤖 Agent: Data Retrieval & Analysis Specialist
fastapi_backend | Status: In Progress
fastapi_backend | └── 🔧 Used qdrantVectorSearchTool (1)
fastapi_backend |
fastapi_backend |
fastapi_backend |
fastapi_backend | # Agent: Data Retrieval & Analysis Specialist
fastapi_backend | ## Final Answer:
fastapi_backend | {
fastapi_backend | "message": "Aroura AI is an AI-powered platform that enables businesses of all sizes to interact with their customers in a deeply personalized and scalable way. It provides practical AI solutions that address real-world challenges, making a positive impact in everyday life. The platform offers features such as personalization, AI-driven chatbot automation, and customized AI solutions tailored for businesses.",
fastapi_backend | "score": 0
fastapi_backend | }
fastapi_backend |
fastapi_backend |
fastapi_backend | 🚀 Crew: crew
fastapi_backend | └── 📋 Task: c2f7b2a7-857f-43d0-aebd-d358d2e16b57
fastapi_backend | Status: Executing Task...
fastapi_backend | └── 🤖 Agent: Data Retrieval & Analysis Specialist
fastapi_backend | Status: ✅ Completed
fastapi_backend | └── 🔧 Used qdrantVectorSearchTool (1)
fastapi_backend |
fastapi_backend | 🚀 Crew: crew
fastapi_backend | └── 📋 Task: c2f7b2a7-857f-43d0-aebd-d358d2e16b57
fastapi_backend | Assigned to: Data Retrieval & Analysis Specialist
fastapi_backend | Status: ✅ Completed
fastapi_backend | └── 🤖 Agent: Data Retrieval & Analysis Specialist
fastapi_backend | Status: ✅ Completed
fastapi_backend | └── 🔧 Used qdrantVectorSearchTool (1)
fastapi_backend | ╭────────────────────────────── Task Completion ───────────────────────────────╮
fastapi_backend | │ │
fastapi_backend | │ Task Completed │
fastapi_backend | │ Name: c2f7b2a7-857f-43d0-aebd-d358d2e16b57 │
fastapi_backend | │ Agent: Data Retrieval & Analysis Specialist │
fastapi_backend | │ │
fastapi_backend | │ │
fastapi_backend | ╰──────────────────────────────────────────────────────────────────────────────╯
fastapi_backend |
fastapi_backend | ╭────────────────────────────── Crew Completion ───────────────────────────────╮
fastapi_backend | │ │
fastapi_backend | │ Crew Execution Completed │
fastapi_backend | │ Name: crew │
fastapi_backend | │ ID: 3b95c809-0cf4-495c-9561-79a81eccf9a7 │
fastapi_backend | │ │
fastapi_backend | │ │
fastapi_backend | ╰──────────────────────────────────────────────────────────────────────────────╯
fastapi_backend |
fastapi_backend | 2025-04-01 19:59:59 | INFO | app.core.chat_flow:handle_intent:82 - [ChatFlow] Final response: {'response': {'content': {'role': 'assistant', 'message': 'Aroura AI is an AI-powered platform that enables businesses of all sizes to interact with their customers in a deeply personalized and scalable way. It provides practical AI solutions that address real-world challenges, making a positive impact in everyday life. The platform offers features such as personalization, AI-driven chatbot automation, and customized AI solutions tailored for businesses.', 'cta_buttons': []}, 'created_at': '2025-04-01T19:59:59.761640', 'done': True}}
fastapi_backend | 🌊 Flow: ChatFlow
fastapi_backend | ID: 114e3383-edd1-44a2-bcb5-e8f99df96eb2
fastapi_backend | ├── Flow Method Step
fastapi_backend | ├── ✅ Completed: initialize_data
fastapi_backend | ├── ✅ Completed: classify_intent
fastapi_backend | └── ✅ Completed: handle_intent
fastapi_backend |
fastapi_backend | ✅ Flow Finished: ChatFlow
fastapi_backend | ├── Flow Method Step
fastapi_backend | ├── ✅ Completed: initialize_data
fastapi_backend | ├── ✅ Completed: classify_intent
fastapi_backend | └── ✅ Completed: handle_intent
fastapi_backend | ╭────────────────────────────── Flow Completion ───────────────────────────────╮
fastapi_backend | │ │
fastapi_backend | │ Flow Execution Completed │
fastapi_backend | │ Name: ChatFlow │
fastapi_backend | │ ID: 114e3383-edd1-44a2-bcb5-e8f99df96eb2 │
fastapi_backend | │ │
fastapi_backend | │ │
fastapi_backend | ╰──────────────────────────────────────────────────────────────────────────────╯
fastapi_backend |