Live data from Hacker News

ChatPDF – Chat with Any PDF

chatpdf.com

131–140 of 141 posts

Re: ChatPDF – Chat with Any PDF

#131
post #20

How are you solving for PDFs that are too large to fit in the token context? I know of a few approaches for that: - Ignore the problem and let it hallucinate answers to anything that's not in the first 5-10 pages - Attempt to recursively summarize the PDF at the start - so summarize e.g. pages 1-3, then 4-6 etc, then if the resulting summaries are still too long for the context window run a summary of those summaries…

Chunk the PDF text and create embeddings. Get cosine similarity between user query and each chunk, and send the top N chunks to OpenAI that fit within token memory.

This is the way.

Re: ChatPDF – Chat with Any PDF

#132
post #14

So what happens to the data from the PDF and the uploaded once I have stopped chatting with it ? A hard pass if you cant ensure the privacy of my data.

right? But of course it HAS to save the pdf, otherwise how is it going to learn off it? The model can't possibly rely on ML processing only while the user has the file open.

FWIW I opened a new tab and uploaded a different PDF, then proceeded to ask it about the previous PDF.

It swears it has never heard of it or anything about the previous PDF (rather, it suggests you go search the web).

So, at least it doesn't seem to leak your upload to other users. But I wonder what it does with the info.

Re: ChatPDF – Chat with Any PDF

#133

Earlier quoted context omitted.

That is a solid poem, is it actually a blackout poem based on whatever PDF you put in though?

Yes, I stuck a PDF of Godel, Escher and Bach, which is a book that my favorite prof in grad school gave me when I graduated back in 1980, of course the PDF is a much later version. But I thought it was pretty decent poem about the book. For anyone who doesn't know, a black out poem means it can only use words from the book or work you provide it.

Looking through a PDF I found I'm pretty sure the words "expanse" and "awaits" are not in there, but it's pretty good. Especially using "musico-logical", that is from the book and probably not something it would use in many other contexts.

Re: ChatPDF – Chat with Any PDF

#135
post #3

How much is it actually using the PDF and how much is just normal Chat GPT knowledge? I uploaded a KJV bible and it seems to be doing pretty good with theological issues, like it knows salvation is by grace through faith alone which is my litmus test for any theological program. However, it seems to be just as honed in as Chat GPT is without even uploading a PDF.

If you look carefully at Paul’s writings, you will notice that he never says that our righteousness comes from faith alone—only that it comes from faith apart from works. Might need to wait for gpt5 for it to go more deeply into the topic :)

There is justification before God and justification before men. To be justified before God requires faith alone, to be justified before men requires faith and works. Justification before God = entrance into heaven, however, so works don't matter for salvation.

If we want Christians fellowship on this Earth, and rewards in heaven, it is good to do work.

Re: ChatPDF – Chat with Any PDF

#136
post #122
post #111

Someone posted code to the exact same thing yesterday on twitter which uses langchain with Chromadb as vector store and Streamlit as front end. Like 30 lines of code.

Can you share the link?

https://twitter.com/pwang_szn/status/1647902577760116737?s=6...

Re: ChatPDF – Chat with Any PDF

#137
post #125

Earlier quoted context omitted.

It’s a piece of software guessing what text to spit out in a web browser. People need to get over themselves.

Is this something that people, in your experience, do?

Touché.

Perhaps we as a species can't handle nice things like the internet to begin with.

Re: ChatPDF – Chat with Any PDF

#138

Earlier quoted context omitted.

Yes, I stuck a PDF of Godel, Escher and Bach, which is a book that my favorite prof in grad school gave me when I graduated back in 1980, of course the PDF is a much later version. But I thought it was pretty decent poem about the book. For anyone who doesn't know, a black out poem means it can only use words from the book or work you provide it.

Looking through a PDF I found I'm pretty sure the words "expanse" and "awaits" are not in there, but it's pretty good. Especially using "musico-logical", that is from the book and probably not something it would use in many other contexts.

Yeah, but awaiting and expansion were in there so I guess we can cut it some slack perhaps.

Re: ChatPDF – Chat with Any PDF

#139
post #20

How are you solving for PDFs that are too large to fit in the token context? I know of a few approaches for that: - Ignore the problem and let it hallucinate answers to anything that's not in the first 5-10 pages - Attempt to recursively summarize the PDF at the start - so summarize e.g. pages 1-3, then 4-6 etc, then if the resulting summaries are still too long for the context window run a summary of those summaries…

I can answer for my site ( https://docalysis.com/ ) which does a semantic search to figure out which parts of the document are most relevant. Then you just use those parts. Docalysis also shows you the PDF side-by-side, has page numbers, and overall responses are of better quality according to users that have emailed comparisons to ChatPDF.

tested and love it. thank you for creating. Another great feature is to allow multiple pdfs to talk to each other. can you help create that

Re: ChatPDF – Chat with Any PDF

#140
post #93

Earlier quoted context omitted.

Or for legal contracts ... though no-one is going to go there with a commercial product unless they can indemnify themselves somehow against erroneous answers.

But can you trust ChatGPT's explanations of a legal text?

No!
Post reply on HN