#Chat with your own PDF

16 messages · Page 1 of 1 (latest)

cerulean lance
fair relic
#

I am looking through the code as I was thinking about making something like this. The code looks quite neat. SciSpace (typeset.io) does that but the code seems to be closed and I wanted to see how chatgpt +embedding would compare.

I am concerned about asking for the user's openAI key on huggingface via gradio. I imagine that that information gets sent to both gradio and huggingface . Neither seems safe for saving very sensitive information. That is, both could be vulnerable to attacks.

still mesa
#

Is this to be used with flask? How does one use this script? Definitely like though I wish the prompt instructions could be shortened.

fair relic
#

Why does the code use text davinci (gpt 3) instead of the chatgpt api that is cheaper and apparently better from openAI's claim ?

deep grotto
still mesa
#

Send in a PR @fair relic

wild pendant
#

Do you know of an good packaged for use with Nodejs?

ripe parrot
#

Good work @cerulean lance

cerulean lance
cerulean lance
cerulean lance
gusty stag
#

Nice

fair relic
fair relic
cerulean lance
wooden briar
#

explain “The Cryptographic Doom Principle” in depth with an analogy: The Cryptographic Doom Principle is a cryptographic principle that states that any system that does not check the MAC (Message Authentication Code) before anything else is doomed. An analogy that can be used to explain this principle is a bank vault. When a customer wishes to access the bank vault, the customer must first authenticate themselves by entering a key or combination. If the customer does not enter the correct key or combination, the vault should not open. This is analogous to the Cryptographic Doom Principle, as authentication must come before any other action. [48] Similarly, if a system does not check the MAC before doing anything else, it is similar to someone entering an incorrect key or combination and still being able to access the bank vault. [115] This principle is important, as it ensures that messages are not tampered with during transmission. [56] Impressive as nowhere in the book is that analogy to be found, and it really clarifies things -- but why you need to give ur api both in the code and later in the browser tho