Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contextual completions #107

Open
Feel-ix-343 opened this issue May 25, 2024 · 2 comments
Open

Contextual completions #107

Feel-ix-343 opened this issue May 25, 2024 · 2 comments

Comments

@Feel-ix-343
Copy link
Owner

Interpret the context around a wikilink using vector database when giving link completions. This could be: give completions on an empty input by finding entities related to the context and another feature, use a relatedness metric in the completion fuzzy finding ranking algorithm.

@RyanGreenup
Copy link
Contributor

RyanGreenup commented May 28, 2024

Somewhat related is:

  • llm.nvim
  • llm-ls

We could find related entries by using something like tantivy or even Bert (There is a crate).

But both require indexing which is going to require user intervention (and in the case of Bert weights + torch).

Would this be outside scope for an LSP though?
Generally speaking, it's not too hard to write a script that pulls some context from the clipboard and then suggests links, one can just pipe that to fzf / dmenu.

If time permits, I'll write up a minimum working example in Python.

Actually just look at this example I use instead of search:

https://gitlab.com/RyanGreenup/dotfiles/-/blob/main/.local/scripts/python/notes/search__semantic.py?ref_type=heads

@Feel-ix-343
Copy link
Owner Author

Hey that sounds great!

Would this be outside scope for an LSP though?

Well I would say that this is not an LSP, but a true PKM that uses the LSP to make things happen in your favorite text editor. Editor specific plugins are also in scope as long as they are implemented across editors.

Therefore, if an LLM would aid in the PKM experience, then it is in scope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants