Improve code completion quality
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
After #12 , ECA code completion now allows the use of any supported/custom model and prompt, but its defaults are not as good as GitHub Copilot or other models.
- model: This is probably related to the fact that most models are not focused on completion but on chat, I'm not aware of non ollama completion models open from anthropic/openai or github, that would be a good start.
- prompt: We use this system prompt which probably can be tunned for better results with specific models, would be nice to find some way to improve genericly like eca chat prompt.
Any help on this is welcome, let's discuss here.
Hey Eric 👋🏼 I think a part of cursor success is that in autocompletion they try to search for similar code via vector embedding and then add the results in the context. I'm not an expert here though
Hey @Snyssfx, I did know about some clients using vector embedding, but it's not clear how that would help a lot, I think the biggest issue here is more how to pass to LLM context, like how to assertively tell what part of the code we want completion, but thank you for mentioning it, I will take a look if that could help somehow
Might be interesting: https://api-docs.deepseek.com/guides/chat_prefix_completion https://api-docs.deepseek.com/guides/fim_completion
ah yeah, API supporting FIM options is amazing, but how to make it generic for all providers
is it really possible to have good auto complete with everything? 🤔
What you mean everything?
Every model (no fim or completion API)
ah, I think so, latest gpt is already good on that but not as fast, but yeah a FIM endpoint or something would be so much better
latest gpt is already good on that but not as fast
There’s one idea worth trying. There are some very fast providers, for example: https://groq.com/pricing https://www.cerebras.ai/pricing Their models are not the smartest, and their tokens are not the cheapest, but they are insanely fast—around 500–3000 tokens per second. I think this is one of the best options to at least experiment with autocompletion tuning on general‑purpose models.
After months of this, I feel like latest OpenAI/Anthropic models are way faster and this is not really a big deal anymore, I believe the UX is what we should aim to improve, like right now auto complete seems too agressive, I'm considering not be "auto" by default, leave users to hit some keybinding or enable the auto manually.