assafelovic / gpt-researcher

LLM based autonomous agent that conducts local and web research on any topic and generates a comprehensive report with citations.
https://gptr.dev
Apache License 2.0
14.92k stars 1.99k forks source link

No references are returned for detailed reports on local data. #565

Open DanHUMassMed opened 5 months ago

DanHUMassMed commented 5 months ago

User Experience:

The Problem:

The Candidate Solution:

        self.unique_documets_visited.update(doc.metadata.get('source') 
                                            for i, doc in enumerate(relevant_docs) if i < max_results)

Considerations:

Example:

Screenshot 2024-06-02 at 12 47 28 PM

I can make a PR once the desired approach is determined. I am looking forward to any comments folks may have.

Thanks, -Dan

assafelovic commented 5 months ago

Hey @DanHUMassMed I would love a PR for this!

bgeils commented 4 months ago

+1

coreylansdell commented 16 hours ago

Hi! I'm not a coder and feel way out of my depth here. I really hope my questions don't come across as demanding or rude. I notice that when running a research request in hybrid or local mode there are no references to the local files included in my document. It also seems like when I try to restrict it to just my docs it still searches the web.

I included a request for it to include harvard style references in it's work. It did so for web pages. But not for my docs. It only shows the document file name. I am hoping that it would read the documents and actually parse out the author(s), date, etc and make page number references or at least (Author, Date) refrences in the body of the research.

thanks!