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

Feature: Chat with pdf/document #41

Open
TrendingApp opened this issue Jun 17, 2024 · 8 comments
Open

Feature: Chat with pdf/document #41

TrendingApp opened this issue Jun 17, 2024 · 8 comments
Labels
enhancement New feature or request

Comments

@TrendingApp
Copy link

Could you add a feature where you can chat with a pdf/document and ask questions related to the pdf/document

@Vali-98 Vali-98 added the enhancement New feature or request label Jun 18, 2024
@Vali-98
Copy link
Owner

Vali-98 commented Jun 18, 2024

This is a rather complex feature due to several factors:

  1. Document parsing - currently unimplemented
  2. RAG - not impossible but does incur some level of calculation + difficulty in storage and searching

I do want this feature too, but it will probably be far off.

@TrendingApp
Copy link
Author

Could you make it work with a text file instead of a pdf?

@Vali-98
Copy link
Owner

Vali-98 commented Jun 24, 2024

No, this will still be a significant amount of work and will not be added soon.

@softpedia-inc
Copy link

No, this will still be a significant amount of work and will not be added soon.

When can we expect this feature sir?

@Sphyker789
Copy link

No, this will still be a significant amount of work and will not be added soon.

Any updates?

@lrq3000
Copy link
Contributor

lrq3000 commented Nov 17, 2024

Just some ideas after trying manually to do simple RAG like queries:

  • For a text file/md file, you can just prepend the document's content in the message, and add the user's prompt at the end after a separation like ------------- . Appending the user's prompt at the end ensures the user's instruction remains fresh in the context window, otherwise it can be forgotten in very long form documents.
  • For other types of content, you could use a tool like Pandoc to extract the textual content, then do the same as above to include the user's prompt, so that you offload the conversion work to a 3rd-party tool you don't have to develop. But of course this is going to be prone to a whole host of bugs or documents misreadings...

IMHO text/md file reading would be very useful without being prone to errors nor bugs. But if not implemented, we can already do that just by copy/pasting in the message content.

@bi4key
Copy link

bi4key commented Dec 8, 2024

@bi4key
Copy link

bi4key commented Dec 8, 2024

Or for RAG simply use this app/method:
https://github.com/shubham0204/Android-Document-QA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants