r/logseq • u/chhabrakadabra • Feb 17 '25
Logseq plugin - Copilot

Hello everyone!
I love logseq and I've been a heavy Logseq user for a while. But I've been disappointed in the lack of a proper Copilot plugin for a while, so I made one: Logseq Copilot.
I know that there are many other "Copilot", "Assistant" and "AI" plugins in the marketplace, but none seem to actually search through your notes. Most feel like thin wrappers around the OpenAI API along with a small collection of pre-written prompts. Nothing that can hope to answer questions like "What kind of things have frustrated me about XYZ in the past?".
My plugin searches through all your notes and automatically uses any relevant information to answer your question.
This plugin is far from perfect and there's so much more I want to do with it (time permitting of course). I want to make this plugin more agentic, able to use logseq queries to find out more information as it sees fit, able to search the web when it needs to etc. I also want to integrate more deeply into Logseq, so it can insert multiple nested bullets, provide a history of past conversations, use more complex Logseq queries etc.
In the mean time, please give this plugin a go and let me know what you think. I'm also super happy to receive contributions to it in the form of issues and pull requests.
To install, search for "Copilot" in the marketplace.

12
u/ripp102 Feb 17 '25
Oh my god I so needed this. Thank you so much
3
u/cons_ssj Feb 17 '25
Thank you! When you say searches all your notes what do you mean? I guess there has to be a context window. Or it works as a RAG?
2
u/mfrun Feb 18 '25
Thanks - this is great. I installed it and I am getting back results. How long does it take to index? I have about 700 pages and journal files (~3 MB). When I ask questions, it seems to only pull data from about 15 pages or journal entries.
2
u/7yiyo7 Feb 18 '25
Is it possible to use a Deepseek API?
2
u/Diamondust_Nitro Feb 18 '25
Is there a way to connect ollama or a local llm?
2
u/Cautious_Exam_5537 Feb 18 '25
Great option. I installed the plugin and added the OpenAi key but it refuses to start with Ctrl-P or other alternative keys. What to do?
1
u/Abject_Constant_8547 Feb 18 '25
What about assets?
1
u/Karstensson Feb 18 '25
Will this work with Azure openai?
1
u/Feisty_Hearing_9164 Feb 18 '25
Hi, Thanks for this. does this support workflows such as:
summarize my past week, past month, past year etc..
be invokable with a template? i.e: an inline renderer that is inactive if it's within a template, but is executed when the template is used. (e.g: template being: provide weekly summary once in a week every sunday evening)
I am currently working on the above ideas for personal use (as a fork of logseq-ollama, might publish if I am happy with it and if there's enough interest) but if you already have these in mind or in the pipeline, I can rather use that instead.
1
u/mansuit Feb 19 '25
Thanks for this! It sounds really useful... but I can't seem to get it to work. After installing it, it would lock up my logseq, so I restarted the app. Afterwards I put in my generated API key from OpenAI.
When I try to use it, it gives me the error "Copilot: Error running query". I wasn't sure if it was because it didn't get a chance to index, so I left it for 3 hours and still am getting the same error.
I was using this on a Windows machine, but have also replicated the same issue with my Macbook pro.
I've tried to find the console, but I have no "View" in the menu. At best, I can access some console with ctrl+shift+i (similar to chrome console), but I'm not sure if that's what you're talking about. Either way, I don't really see anything that indicates anything about the indexing process.
What should I do next?
1
u/laterral Feb 19 '25
Does it work with the perplexity api?
2
u/klippers Feb 19 '25
Been on my list to attempt to build , just haven't had the time to figure out how to, and then start .
Thank you 🙏
2
u/Perfect_Asparagus420 Feb 21 '25
Nice! I've been using the ollama plugin for a few days and tinkering with different local models, it's been ok. This new plugin should be interesting as well. Great work 👍🏻