omagdy7 / ollama-logseq

Logseq plugin to integerate with ollama
MIT License
214 stars 20 forks source link

feat: Execute Logseq Queries and add to ollama context #23

Open Deastrom opened 6 months ago

Deastrom commented 6 months ago

Ran a summarize on a block that runs a query and the summary simply told me that I was running a query. I don't think (without looking through the code) the logic is executing the query and adding it to its context.

Would love to see this so I can summarize, say, an entire sprint without needing to move around my journal entries :)

omagdy7 commented 6 months ago

Can you please elaborate more with an example what I understand is that you want the plugin to understand if the current block is a logseq-query and run it and then feed that through the AI context and summarize it am I correct?

Deastrom commented 6 months ago

There are a couple different types of queries, the ones i'm specifically looking for are the Advanced Queries

https://docs.logseq.com/#/page/queries

the Markdown file simply captures the definition of the query relying on the logseq app to execute it.

I'd like to see this plugin execute these queries and add it to its context.

the-awb commented 5 hours ago

I would love to see this feature too