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

Never Ending Generation Loop with Ollama and Searxng #1271

Open
IMJONEZZ opened this issue Mar 17, 2025 · 5 comments
Open

Never Ending Generation Loop with Ollama and Searxng #1271

IMJONEZZ opened this issue Mar 17, 2025 · 5 comments

Comments

@IMJONEZZ
Copy link

Describe the bug
Everything seems to be great in that the .env works, the docker-compose builds successfully, I can visit the app correctly, and generation seems to be really high-quality until we hit the end. At that point, it just continues generating "End of Document. This document serves as a comprehensive guide for blah blah blah" never-endingly. Any help would be amazing.

To Reproduce
Steps to reproduce the behavior:

  1. Go to localhost:8000 after docker compose up build
  2. enter any research topic with any params
  3. Watch it just never ever end (200+ minute runtime)

Expected behavior
I expected the websocket to send a close() signal after it got the <|endoftext|> tag or something similar.

Screenshots

Image

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser Firefox
  • Version latest

Additional context
.env

OPENAI_API_BASE=ip-to-ollama/v1
OLLAMA_BASE_URL=ip-to-ollama
FAST_LLM="ollama:qwen2.5"
SMART_LLM="ollama:qwen2.5"
EMBEDDING="ollama:nomic-embed-text"
RETRIEVER=searx
SEARX_URL=ip-to-searx/search?q=<query>
TEMPERATURE=0.1

final docker logs output:
gpt-researcher-1 | INFO: [timestamp] Writing report for 'query'...

@ElishaKay
Copy link
Collaborator

ElishaKay commented Mar 20, 2025

Welcome @IMJONEZZ

What LLM model are you using?
We've done most of our testing with the OpenAI LLM

If you're running with Docker Compose, can you try the NextJS app on localhost:3000 and let us know if the issue persists?

@IMJONEZZ
Copy link
Author

IMJONEZZ commented Mar 20, 2025 via email

@norton-chris
Copy link

I'm getting the same issue. Weirdly it just repeats the References and Apendix sections for me. Only tried port 8000 so far.

@ElishaKay
Copy link
Collaborator

ElishaKay commented Mar 23, 2025

Strange - please send over the logs - see if you can pinpoint the function or prompt responsible for that stage of the report.

Also, what type of report are you running?

Try regular report and multi_agents.

For the NextJS App, check within the Network Tab the GPTR API URL that the frontend is querying - what domain is it querying for the Websocket connection?

@norton-chris
Copy link

Sorry for the late response. Okay I've tried it a bunch of times. There are a few times it actually finishes, but most of the time the logs look like this. I'm just running everything default. Summary - Short and fast (~2 min). Seems like right when the report ends it starts another report but for some reason just repeats the Conclusion and References. This log is from a clean start and just running one prompt on the port 8000 site and it continues outputting the Conclusion and References till I refresh the page.

gpt-researcher-logs.txt

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

3 participants