A --file option to attach multiple files #98
Replies: 2 comments
-
I think the concept of establishing standard ways for ChatGPT to recognize different types of input and output data types is a great idea! I'm already experimenting with it in #108. Where I am attempting to teach it that shell commands between There are some challenges in teaching it though, and I think I need some more prompt engineering / auto generated conversation lead in. The I have also been looking into LangChain, and they integrated Unstructured IO to allow for the ingestion of arbitrary file types. I think this could be really powerful and enable shell-gpt to support a wide array of files for context, editing, summarization / memory space compression, and review. |
Beta Was this translation helpful? Give feedback.
-
I think similar results could be achieved using pipes: cat a.txt b.txt | sgpt "..." |
Beta Was this translation helpful? Give feedback.
-
I imagined a prompt like this:
Of course, it is possible to do:
But the proposal has some advantages:
--file
option is more standardised than$(...)
which may not work with all shells.Disadvantages:
--file
options, and retain their ordering. This might not be possible with the currenttyper
library.I'm not desperate for this feature, but just had the idea and wanted to share.
Beta Was this translation helpful? Give feedback.
All reactions