5 ms·
Show HN: AI Files – manage and organize your files with AI
- user- 4y agoCould use with examples of what exactly this is/does
- jjuliano 4y agoBasically, it curates your files automatically using AI based on the file naming convention you set in the configuration file. And it suggests tags and summarizes/describes the file based on its contents, then finally attach those tags and comment to the file. For example, if you have an unnamed file ‘document.doc’ that contains information about a parking ticket, then it will rename this file ‘ParkingTicket.doc’, you can add more organizational details like categories, etc. It does the same as well for Images and Music.
- dstala 4y agoThis description helped me uncover a problem that I had since ages! Good Will give it a run
- bbor 4y agoThis is absolutely incredible, and a very effective, minimal interface. Can’t wait to try it!
- jjuliano 4y agoThanks!
- NayamAmarshe 4y agoThis is a great project!
- jjuliano 4y agoThanks!
- rnosov 4y agoI think you might want to correct ChatGPT to just GPT. As far as I know, there is no public API access point for the ChatGPT. OpenAI davinci model that you're likely using is based on InstructGPT ( a different GPT based beast ). Also, I would be somewhat worried about this thing racking up massive bills for the larger files. EDIT: okay, according to replies there is more than meets the eye
- eterps 4y ago> Also, I would be somewhat worried about this thing racking up massive bills for the larger files. Looks like the amount of data that is sent is capped: https://github.com/jjuliano/aifiles/blob/main/.aifiles.sample#L16 https://github.com/jjuliano/aifiles/blob/main/.aifiles.sampl...
- jjuliano 4y agoThe more words you sent, the better understanding the AI about the file. HOWEVER, it also comes with privacy concerns. You can choose to rather sent a few words for AI to figure out your file. Also, take note, the maximum payload for OpenAI is 4kb, so the app will just throw an error when it exceeds 4kb.
- simse 4y agoLooks like it actually _is_ using ChatGPT: https://www.npmjs.com/package/chatgpt https://www.npmjs.com/package/chatgpt
- pictur 4y agogood idea. a tool that can do it locally without the need for a dependency might be better.
- jjuliano 4y agoThat's a good suggestion. At the moment, it uses several other applications to gather textual information about the file. In the future releases. You can choose not to use other applications, and just rely on the file-name, etc.
- langsoul-com 4y agoThe project auto tagging got me wondering if there's an AI that can auto create tags for a job posting. Ie what tech stack it uses, languages and the like.
- petemetefete 4y agoIt should be noted that this tool uses a prompt [1] which does include the whole file, or in case of non textual content, the metadata of the image/video/audio file [2]. [1] https://github.com/jjuliano/aifiles/blob/ef529fd6281eaf8d373fc3c3704a9c61cc48384b/src/utils.ts#L552 https://github.com/jjuliano/aifiles/blob/ef529fd6281eaf8d373... [2] https://github.com/jjuliano/aifiles/blob/ef529fd6281eaf8d373fc3c3704a9c61cc48384b/src/utils.ts#L397 https://github.com/jjuliano/aifiles/blob/ef529fd6281eaf8d373...
- greshake 4y agoOutput from the language model is also being injected into a script that is then executed: https://github.com/jjuliano/aifiles/blob/ef529fd6281eaf8d373fc3c3704a9c61cc48384b/src/utils.ts#L626 https://github.com/jjuliano/aifiles/blob/ef529fd6281eaf8d373... He argued below that he is not vulnerable to indirect prompt injection attacks (https://github.com/greshake/llm-security https://github.com/greshake/llm-security), but I think he is wrong.
- eterps 4y agoHow feasible would it currently be to use a standalone tool for this (instead of connecting to ChatGPT)? Are there any standalone command line tools that can be experimented with?
- rnosov 4y agoIt should be feasible with GPT-J. You should be able to run it locally if you have GPU with more than 16gb of video memory. Output quality might not match OpenAI offerings though. https://playground.helloforefront.com/models/free-gpt-j-playground https://playground.helloforefront.com/models/free-gpt-j-play... EDIT: looks like you guys hammered it down. Here is another playground (box on the right): https://huggingface.co/EleutherAI/gpt-j-6B https://huggingface.co/EleutherAI/gpt-j-6B
- jjuliano 4y agoIn the future, it can be configurable to use your own ChatGPT server. As more companies will opt for a domain-specific LLMs per industry/company.
- dstala 4y agoPrivacy warning displayed upfront is a great thing! Looks an interesting use case though.
- jjuliano 4y agoYes, it's important to tell that disclaimer to be warned about sending info to ChatGPT.
- eterps 4y agoDoes this tool keep track of the categories it has used to build a directory structure over time, or does each file result in a new structure unrelated to the previous one?
- jjuliano 4y agoThat is actually in the TODO items. You can also pattern it to a curated folder (if you have one). This feature would be available on the next release.
- throwaway1183 4y agoI saw a post[0] in HN that says AI models are susceptible to new kind of malware. How is this app safe? [0]: https://news.ycombinator.com/item?id=34945349 https://news.ycombinator.com/item?id=34945349
- rnosov 4y agoI won't describe it as malware. Your link describes prompt injection which applicable to any software that currently employs LLMs (including this package). To successfully exploit it an attacker would need to place a file with malicious prompt on your hard drive. However, if it's the case then there will be a lot more easier ways to execute various attacks.
- throwaway1183 4y ago> a file with malicious prompt on your hard drive How will you know if a file is free from malicious prompt or not? The applications seems to be able to download any file and analyze it. So from my perspective, I think it is easier this way than to execute other attack? Because these files may seem benign but can still run instructions from the prompts. Just think that the next pdf you are downloading from the web has has no malware but only malicious prompt. What will you do?
- rnosov 4y agoIf a user can be tricked into downloading files and then running them and why not trick a user into downloading and running actual malware? With your pdf scenario it would be a possibility, but at the moment OpenAI davinci doesn't follow URLs. So, even you overtake the model with your malicious prompt what would you gain? The worst I can think of is that you can misdirect the summary which although amusing won't be that dangerous.
- greshake 4y agoIf you had a PDF reader which allowed arbitrary code execution on opening a file, would you argue the same? You give arbitrary read/write to the LLM, right? So ransomware, causing network requests as side effects etc. could all be possible. Look at the paper to find more descriptions of what could go wrong: https://github.com/greshake/llm-security https://github.com/greshake/llm-security
- llanowarelves 4y agoI have a non-AI version of this I wrote and considered using a topic classifier. Will have to check this out.
- jjuliano 4y agoI like to see that topic classifier! I was also thinking about it before on how to accomplish that, but now LLMs can classify and tag a text. GPT AI is really a huge jump in technological advancement. It will reshape this world we know today.