j0rd1smit / obsidian-copilot-auto-completion

MIT License
91 stars 10 forks source link

Is it possible to provide an entire directory as "context? #40

Open kvenn opened 1 month ago

kvenn commented 1 month ago

I write a lot of docs and it would be ideal if it automatically took into consideration all my other documents as it provides suggestions.

It should still use the current file as the most important, but it should draw from all my other documents to even suggest other page names to link to, format similarly, etc.

Does that make sense?

For context, this is how GitHub Copilot works. It knows about all my other classes and their functionality and knows to write code like the rest of the code base (when possible)

j0rd1smit commented 3 weeks ago

Your proposal makes sense, however this feature is quit complex.

All this sounds like a lot of work. This is a hobby project next to my main job, so I don't think I have time for such a major feature.

kvenn commented 3 weeks ago

That makes total sense, and I completely understand if this isn't something you'll get to.

I think there are a handful of compromises you could make that would simplify implementation (if you or others found value in the functionality). Here's the MVP I could see based on the complexity concerns

I imagine the prompt engineering will be the hardest part, and I could see that taking a lot of time to get right. I've seen other plugins allow you to include your own prompt which might help forward that difficulty onto the consumer.

Anyways, just an idea! Thanks for hearing me out and thanks for a solid plugin.