assafelovic / gpt-researcher

LLM based autonomous agent that does online comprehensive research on any given topic
https://gptr.dev
Apache License 2.0
14.19k stars 1.85k forks source link

Managed to port the gpt-researcher for gemini models, but have issue in research task #860

Open hereiamravi opened 5 days ago

hereiamravi commented 5 days ago

Describe the bug Getting No Content Found for research task

To Reproduce Steps to reproduce the behavior:

  1. Port the gpt-researcher using google_genai models
  2. set the RETRIEVER to google
  3. spin up the application.
  4. in the nextjs UI, start the chat.

Expected behavior expected search results in the expected format.

Screenshots If applicable, add screenshots to help explain your problem. image image image

another error, when i set report type multi agents report, i am getting argument of type NoneType is not iterable. Using gemini-pro-1.5-001 . image image

Desktop (please complete the following information):

ElishaKay commented 2 days ago

Welcome @hereiamravi What's your .env look like (no need for the actual secrets) - just what variables are you using there?

Have you joined the discord? We have a gptr-bot in the help forum that might be able to help debug

hereiamravi commented 2 days ago

@ElishaKay ,

PFB.

image

apart from the above, I have change model to gemini-pro-1.5-001 in task.json and agent.py file.

Thanks,

ElishaKay commented 1 day ago

@hereiamravi I opened a thread in the discord to consult with the AI Dev Team

You need to join the discord to consult with the bot.

I recommend copy-pasting your .env file into the query to the chatbot as text (without the values) & letting the bot guide you

ElishaKay commented 1 day ago

@hereiamravi

Can you try adding to your .env:

OPENAI_API_KEY="123"

Doesn't need to be a real API Key.

If that doesn't work, read through this one

Happy to hear the outcome - we'll make the process more intuitive based on your feedback

hereiamravi commented 1 day ago

Hi @ElishaKay , no luck with the suggested option. I tried with both TAVILY and Google search APIs but there was no luck as well. I am doing more analysis from my side.

Please do suggest if you find an solution.

Thanks,

ElishaKay commented 1 day ago

Sounds good @hereiamravi

We'll create some docs on it as soon as one brave soul cracks it for the community