brianpetro / obsidian-smart-connections

Chat with your notes & see links to related content with AI embeddings. Use local models or 100+ via APIs like Claude, Gemini, ChatGPT & Llama 3
https://smartconnections.app
GNU General Public License v3.0
2.72k stars 181 forks source link

To continue a discussion I need to keep starting off with "Based on my notes" #407

Open farzanmaghami opened 9 months ago

farzanmaghami commented 9 months ago

It's not a great UX having to start every response that requires analysis of my notes in an existing conversation with "Based on my notes".

It makes sense to start the conversation this way, but for follow-up conversations, it's not natural to have to write this way. See the screenshot for an example of this.

SC_2024-01-10_16-21-03.pdf

huachuman commented 9 months ago

Yes, this is a serious annoyance. There must be a way around it.

brianpetro commented 9 months ago

@farzanmaghami @huachuman thanks for the feedback

My plan is to have major updates to the chat in version 2.1.

One of those updates I'm considering is using the AI to detect whether looking up notes is necessary, while that process is currently triggered by phrases like "based on my notes."

There's also the context limit issue that currently prevents a lot of previous context, for example the retrieved notes, from being included in context for subsequent messages. In v2.1 the chat history will be saved in a markdown format that Smart Connections can use for partial retrieval, similar to how notes are retrieved.

Do you have any thoughts on that? Does it make sense? Seem like what you're aiming at?

🌴

heyalexnet commented 9 months ago

@brianpetro have you considered using OpenAI assistant API? It includes smart mechanisms (ie summarization + truncation) to deal with the context window limitations. It also provides an easy way to access to all the cool capabilities.

brianpetro commented 9 months ago

@ineation

I have, but currently have decided against it because it would 1) lock-in users to OpenAI services, which goes against one of my v2 objectives of enabling more service/model options. And 2) by my understanding the assistant API would come with a substantial cost increase due to having to pay monthly for any data stored on OpenAI servers.

I think the Smart Connections GPT might be a good option if you're ok with the above two points.

Thanks for interest in making Smart Connections the best it can be 🤓

🌴