obsidian-copilot icon indicating copy to clipboard operation
obsidian-copilot copied to clipboard

Linked notes in post context auto adds linked notes

Open jakubjezek001 opened this issue 8 months ago • 2 comments

Is your feature request related to a problem? Please describe. Currently if note is added either via button or [[ command, only added note to the post context is the one explicitly added. But some of the note might have also linked notes which would be good for context.

Describe the solution you'd like

  • Settings could have available toggle for enabling also linked notes into the context and perhaps set number of nested levels.
  • Once a user mention a note or add it via + button all related notes will be added and it would be up to the user to remove them if unwanted.

jakubjezek001 avatar Apr 08 '25 13:04 jakubjezek001

I thought about this and some people asked for a similar setting before. The problem is when you add a hub note it can unnecessarily add 100s of notes into context.

A more agentic approach makes more sense IMO:

  • the agent reads the notes in context, assess whether it's sufficient to answer the user query
  • if no, the agent initiates another round of search, taking into account the links and the semantic similarity
  • repeat until the target is found

This agentic "deep search" approach looks better than user tinkering with depth of links. WDYT?

logancyang avatar Apr 09 '25 03:04 logancyang

yeah that is great idea. This way the process would be more efficient and rather on demand. #682 is describing the workflow very well

jakubjezek001 avatar May 02 '25 13:05 jakubjezek001

Available in the latest version 3.1.2! Please take a look!

ichts avatar Nov 10 '25 14:11 ichts