chhoumann / quickadd

QuickAdd for Obsidian
https://quickadd.obsidian.guide
MIT License
1.5k stars 138 forks source link

[FEATURE REQUEST] Could you extend the AI interface to the chat API? #476

Open Mike-b07e5 opened 1 year ago

Mike-b07e5 commented 1 year ago

Is your feature request related to a problem? Please describe. Not related to a problem. Building off the awesome new integration with GPT (one-off).

Describe the solution you'd like I would like to have a chat interaction with the AI that is captured (my prompt and its response) in Obsidian. This would allow for the interaction to have a history of the chat so that new prompt/responses build on the previous - as in ChatGPT but in Obsidian!

chhoumann commented 1 year ago

Hey @Mike-b07e5, thanks for the feature request!

What would an ideal version of this look like?

Would it be that the prompt sent off to OpenAI is stored as a variable, so you can use it when e.g. capturing? A la

Capture format:

> [!TIP] Prompt callout
{{VALUE:prompt-quoted}}

{{VALUE:response}}

Which could become, e.g.

> [!TIP] Prompt callout
> Show me Einstein's famous formula

Einstein's most famous formula is the equation for mass-energy equivalence, known as the mass-energy equivalence formula or the Einstein's mass-energy relation. It is represented by the equation:

E = mc²

In this equation:
- E represents energy,
- m represents mass, and
- c represents the speed of light in a vacuum, which is approximately 299,792,458 meters per second.

The equation states that energy (E) is equal to mass (m) multiplied by the square of the speed of light (c) in a vacuum. This equation is a fundamental concept in physics and is derived from Einstein's theory of relativity. It implies that mass and energy are interchangeable, and a small amount of mass can be converted into a large amount of energy, as demonstrated by nuclear reactions such as those in the sun or in nuclear power plants.

What do you think?