Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(serper or search issue) the researcher is lazy #533

Open
abdalladorrah opened this issue Apr 29, 2024 · 0 comments
Open

(serper or search issue) the researcher is lazy #533

abdalladorrah opened this issue Apr 29, 2024 · 0 comments

Comments

@abdalladorrah
Copy link

Hello
I tried to make search like the following:
Role: Professional researcher
Goal: use internet search engine to investigate about information
Desc: My information are always new and fresh, making list of Arabian AI companies
Out puta: a report includes a list of Arabian AI companies

the result was like this

Action: Search the internet
Action Input: {"search_query": "middle east ai companies"}
Observation
Thought:
Action: Search the internet
Action Input: {"search_query": "arabian ai companies"}
Observation
Thought:
Action: Search the internet
Action Input: {"search_query": "arab ai companies"}
Observation [INFO]: Max RPM reached, waiting for next minute to start.

Thought:
Action: Search the internet
Action Input: {"search_query": "arabic ai companies"}
Observation
Thought:
Action: Search the internet
Action Input: {"search_query": "middle east ai companies"}
Observation
Thought:
Action: Search the internet
Action Input: {"search_query": "arabian ai companies"}
Observation
Thought:
Action: Search the internet
Action Input: {"search_query": "arab ai companies"}
Observation
Thought:
Action: Search the internet
Action Input: {"search_query": "arabic ai companies"}
Observation
Thought:
Action: Search the internet
Action Input: {"search_query": "middle east ai companies"}
Observation
Thought:
Action: Search the internet
Action Input: {"search_query": "arabian ai companies"}
Observation
Thought:
Action: Search the internet
Action Input: {"search_query": "arab ai companies"}
Observation
Thought:
Action: Search the internet
Action Input: {"search_query": "arabic ai companies"}
Observation
Thought:
Action: Search the internet
Action Input: {"search_query": "middle east ai companies"}
Observation
Thought:
Action: Search the internet
Action Input: {"search_query": "arabian ai companies"}
Observation [INFO]: Max RPM reached, waiting for next minute to start.

Thought: I now know the final answer
Final Answer:

actually I am not sure that he ever searched on internet successfully, what I understand is he just split the commands and reuse it in a few sentences and just show me that sentences in the log then give me nothing as a result
no use with serper API although i gave him the right code like following:

import os
import telebot
from crewai import Agent, Task, Crew, Process
from langchain_community.llms import HuggingFaceEndpoint
from crewai_tools import SerperDevTool
os.environ["SERPER_API_KEY"] = "fxxxxxxxxxxxxxxxxxxxxxxx" # serper.dev API key
search_tool = SerperDevTool()

researcher = Agent(
    role=role.strip(),
    goal=goal.strip(),
    backstory=backstory.strip(),
    llm=llm,
    memory=False,
    cache=True,
    verbose=True,
    allow_delegation=False,
    tools=[search_tool],
    max_rpm=10,
    max_iter=100
)

 task1 = Task(
    description=description.strip(),
    expected_output=expected_output.strip(),
    output_file='AI.md',
    agent=researcher,
    tools=[search_tool]
)

the same code work perfect with the writer but not with the researcher , shortly no search happens and no consume from serper API
any solutions ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant