omagdy7 / ollama-logseq

Logseq plugin to integerate with ollama
MIT License
167 stars 15 forks source link

Feature request: Ask in the context of the block and not whole page #15

Closed AvijeetPrasad closed 4 months ago

AvijeetPrasad commented 4 months ago

Thanks a lot for this useful plugin. Currently, the only way to ask in the context of a block is to prompt from the block. It would be nice to get an option to ask AI with block context. This would help us a lot when working with bigger pages when we want a block-specific query.

omagdy7 commented 4 months ago

So just to make sure I am following you want something like Ask Ai with context but it feeds only the current block context right?

AvijeetPrasad commented 4 months ago

So just to make sure I am following you want something like Ask Ai with context but it feeds only the current block context right?

Yes. That's correct. It takes the input from the current block including any child blocks under it, but not the rest of the page.

taweili commented 4 months ago

So just to make sure I am following you want something like Ask Ai with context but it feeds only the current block context right?

Yes. That's correct. It takes the input from the current block including any child blocks under it, but not the rest of the page.

It's not hard to include the child blocks as part of the context in query to Ollama but as now the response from Ollama is also added as the child block, they should be excluded? I am trying to figure out a better interaction before doing this.

thelazyoxymoron commented 4 months ago

+1 for this. Most of my writing happens in the journal page with a parent block setting the context and nested child blocks containing all the points. Having this feature would help a lot in working with journal-as-default workflows.

omagdy7 commented 4 months ago

Done via 481ae0c