What does "Use vector encodings to automatically select code" in the roadmap mean? #26
-
Hi, I found this "Use vector encodings to automatically select code" line on the README but can't quite understand what that means. Can you please explain it to me @gptlang? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
It's what the Copilot Chat extension does in VSCode. It takes the file you're on and uses tree-sitter to get all functions & classes. It then submits your code to the embedding API CopilotChat.nvim/rplugin/python3/copilot.py Lines 136 to 150 in c54e61f Once that's done, it finds the |
Beta Was this translation helpful? Give feedback.
-
Couldn't we just use Neovim built-in Treesitter and LSP to do that? |
Beta Was this translation helpful? Give feedback.
-
I'm really not sure why embeddings are necessary. What's the use case to use embeddings anyway? |
Beta Was this translation helpful? Give feedback.
It's what the Copilot Chat extension does in VSCode. It takes the file you're on and uses tree-sitter to get all functions & classes. It then submits your code to the embedding API
CopilotChat.nvim/rplugin/python3/copilot.py
Lines 136 to 150 in c54e61f