Open DanHUMassMed opened 5 months ago
Hey @DanHUMassMed I would love a PR for this!
+1
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!
User Experience:
The Problem:
visited_urls
and, therefore, are not updated with local data documents.The Candidate Solution:
A candidate solution would be to track references from within
ContextCompressor,
which is the "source of truth" for content inclusion in the research document.To enable this a new variable
self.unique_documets_visited
that defaults toset()
could be added tocompression.py
.Add the below single line of code can be added to
get_context()
to track the unique documents visited.Considerations:
max_results
inget_context().
Example:
I can make a PR once the desired approach is determined. I am looking forward to any comments folks may have.
Thanks, -Dan