quickadd icon indicating copy to clipboard operation
quickadd copied to clipboard

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

Open Mike-b07e5 opened this issue 2 years ago • 1 comments

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!

Mike-b07e5 avatar Apr 25 '23 21:04 Mike-b07e5

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?

chhoumann avatar May 19 '23 13:05 chhoumann