assafelovic / gpt-researcher

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

Interference of different research topics #533

Closed biany closed 3 months ago

biany commented 4 months ago

I found an interference by the previous research topics when querying a new topic. The new topic was totally irrevalent to the old topic, however some references cited in the new report were the same to the old topic and had nothing to do with the new topic.

This problem was solved by restarting the uvicorn app. I haven't dove into the code but I guess a new temporary vectorstore needs to be created when given a new topic.

assafelovic commented 4 months ago

Thanks @biany we'll look into this.

theguaz commented 3 months ago

I'm experiencing the same behavior with an adapted version of cli.py, whenever I ask another topic it starts to mix the topics.

assafelovic commented 3 months ago

@biany @theguaz does this happen on the web interface of PIP package or both?

assafelovic commented 3 months ago

Fixed here: https://github.com/assafelovic/gpt-researcher/commit/1525ac1e8a5e6d558826e9f2890743ea4d9dd856