logancyang / obsidian-copilot

THE Copilot in Obsidian
GNU Affero General Public License v3.0
2.55k stars 177 forks source link

OpenAI Assistants #187

Open taneltm opened 9 months ago

taneltm commented 9 months ago

I have several system prompts which I currently need to copy-paste to the copilot settings page. It would be more convenient if I could just switch between the Assistants I've defined in the OpenAI playground.

Maybe the OpenAI Assistants could simply be selected from the chat mode selection, the one which currently has "Conversation" and "QA: Active Note".

The assistant defines the model, so I guess the model selection should display the model which the assistant uses, with the field itself being disabled.

API: https://platform.openai.com/docs/api-reference/assistants

logancyang commented 9 months ago

@taneltm thanks for the suggestion! I've been thinking about ways to use the Assistant API and what you described is a great way. I'm also thinking about changing "QA: Active Note" to "Local RAG" where it should support any model not limited to OpenAI ones, and will work on a collection of notes with local and non-local models. So in the future, we will have 3 modes:

How does this sound? Any comment or suggestion is appreciated!

taneltm commented 9 months ago

I had to google what RAG meant, after that the options started to make sense.
Something like "QA: Active note" or "Note as context" would probably be more intuitive for someone who doesn't know AI lingo, but I'm not sure if those would be the best either.

But whatever the choices are called, I do like those ideas!

michalzmuda commented 6 months ago

+1 for OpenAI Assistants support