Open Benniongithub opened 1 year ago
For context awareness of the copilot, you could use the langchain contextual compression retriever. With that you can first find the closest documents in your vault, compress their knowledge into relevant packs of knowhow and then use that as prompt context. https://python.langchain.com/en/latest/modules/indexes/retrievers/examples/contextual-compression.html
@Benniongithub @michox Thanks for the suggestions! Great ideas! I was thinking about this, and was mainly looking at LlamaIndex since they seem to already have an Obsidian connector. I also echo the local-first philosophy which Obsidian itself is a great example of.
Just curious, how did you guys find out about this project? I haven't announced it anywhere and it's still under plugin review. Planning to make an announcement soon.
I just saw that langchain also has an obsidian loader. It also has pretty much any other loader you can imagine and an automated loader, but besides that langchain is way more powerful in general. I was actively looking for obsidian AI plugins :)
Will be addressed by https://github.com/logancyang/obsidian-copilot/issues/16
Amazing app, but to become really useful I think there are a few low hanging fruits you can integrate! I would recommend using langchain as a framework as it makes it really easy to work with LLMs. langchain is more powerful in python, but there is also a typescript integration.