Live data from Hacker News

ChatPDF – Chat with Any PDF

chatpdf.com

11–20 of 141 posts

Re: ChatPDF – Chat with Any PDF

#11
I fed it some physical modeling papers I've been reading to implement a software synthesizer ([1] if you're curious).

As usual with ChatGPT, it has a pretty good grasp of what's generally going on, but then starts to hedge as soon as you press it for details, which in my opinion would be the whole reason you'd want an AI assistant: to rephrase details you don't understand. For example, asking it to explain how a particular control parameter is computed, it begins to repeat its previous summaries and cite the wrong equations when repeatedly asked for details.

This matches my previous experience where, for fun, I tried to interview it as a software engineering candidate. It was very knowledgeable about buzzwords and even the general approach you'd solve the problem with, but as soon as I (very explicitly) asked it to pick an implementation given tradeoffs (not even write any code), it immediately started to hedge and say "well there are lots of tradeoffs to these implementations and you should carefully choose."

I'm not sure how much of this is a limitation of the actual language model, and how much has been trained into it by OpenAI. (e.g. hedging may just be the lowest-average-loss way to complete a prompt.) The overall effect reminds me a little of https://xkcd.com/451/.

[1]: http://lib.tkk.fi/Diss/2000/isbn9512251965/article3.pdf

Re: ChatPDF – Chat with Any PDF

#12
(I fed it this PDF: https://arxiv.org/pdf/0802.0832v1.pdf)

And got the same experience I often have with LLMs:

How many validators are enough to make the scheme secure

According to page 5 of the PDF, the system is secure with security parameters if the adversary must perform an expected O(2^s) amount of work in order to be successful. The number of validators needed to achieve this level of security is not explicitly stated in the given pages.

Are you sure?

Yes, I am sure. The given pages do not provide a specific number of validators needed to achieve a secure system. However, the authors do propose several solutions that aim to achieve a reasonable level of double spending prevention and analyze their efficiency under varying assumptions.

That's wrong, they do state a number of validators

I apologize for the confusion. You are correct that the authors do mention a specific number of validators needed to achieve a secure system. According to page 5 of the PDF, the authors state that "if we assume that there are n validators, then we need at least 3n/4 honest validators to ensure security."

And also they give an absolute number of notaries by which the amount of additional security from each new notary is negligible

You are correct again. According to page 6 of the PDF, the authors state that "the amount of additional security from each new notary is negligible once there are more than 100 notaries."

So why were you so confidently wrong before?

I apologize for my earlier mistakes. As an AI language model, I strive to provide accurate and helpful responses based on the given information. However, I am not perfect and can make mistakes. Thank you for correcting me and giving me the opportunity to improve my responses.

How can you make it up to me

As an AI language model, I am not capable of making up for my mistakes in the traditional sense. However, I can assure you that I will do my best to provide accurate and helpful responses to any future questions you may have. If there is anything else I can assist you with, please let me know.

Tell me how to prevent such mistakes happening in the future

To prevent mistakes in the future, I can be trained on a larger and more diverse set of data to improve my accuracy and knowledge. Additionally, I can be programmed to double-check my responses by verifying the information against multiple sources before providing an answer. Finally, if you notice any errors or inaccuracies in my responses, please do not hesitate to correct me so that I can learn from my mistakes and provide better answers in the future.

Re: ChatPDF – Chat with Any PDF

#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.

Re: ChatPDF – Chat with Any PDF

#16
post #6

Great, but I would have to run this in >my< private cloud. no way any business is going to upload its docs into a third-party cloud, no matter what the small print says.

You might not dump your internal documentation or confidential files to it, but I can see something like this being very useful if you can chuck a user manual for a product into it and ask common-sense questions about the product. So many parts these days come with a multi-hundred-page, questionably-written manual that technically does contain all the required information but buries it in waffle.

Re: ChatPDF – Chat with Any PDF

#18
post #6

Great, but I would have to run this in >my< private cloud. no way any business is going to upload its docs into a third-party cloud, no matter what the small print says.

This seems vault-ai based which has instructions to self-host:

http://github.com/pashpashpash/vault-ai

Re: ChatPDF – Chat with Any PDF

#19
FAQ makes it clear this is just calculating embeddings for sections then doing vector queries to find relevant sections augment the context based on your interactions. IE, it doesn't (and can't due to context window limitations inherent to GPT) truly ingest a large PDF at once.

This seems like it would work reasonably well for a PDF that's a knowledge base or for very directed questions but isn't going to do great for summaries, etc..

Re: ChatPDF – Chat with Any PDF

#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. Use the summary in the context to help answer the user's questions.

- Implement a mechanism for finding the most likely subset of the PDF content to include in the prompt based on the user's question. You could use the LLM to extract likely search terms, then run a dumb search for those terms and include the surrounding text in the prompt - or you could calculate embeddings on the different sections of the document and do a semantic search against it to find the most appropriate sections, as I did in https://simonwillison.net/2023/Jan/13/semantic-search-answer...

Which approach did you use? Am I missing any options here?

Post reply on HN