eca icon indicating copy to clipboard operation
eca copied to clipboard

Improve code completion quality

Open ericdallo opened this issue 1 year ago • 10 comments

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.

ericdallo avatar Oct 25 '25 22:10 ericdallo

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

Snyssfx avatar Nov 13 '25 16:11 Snyssfx

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

ericdallo avatar Nov 13 '25 18:11 ericdallo

Might be interesting: https://api-docs.deepseek.com/guides/chat_prefix_completion https://api-docs.deepseek.com/guides/fim_completion

zikajk avatar Jan 06 '26 14:01 zikajk

ah yeah, API supporting FIM options is amazing, but how to make it generic for all providers

ericdallo avatar Jan 06 '26 14:01 ericdallo

is it really possible to have good auto complete with everything? 🤔

zikajk avatar Jan 09 '26 16:01 zikajk

What you mean everything?

ericdallo avatar Jan 09 '26 17:01 ericdallo

Every model (no fim or completion API)

zikajk avatar Jan 09 '26 17:01 zikajk

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

ericdallo avatar Jan 09 '26 17:01 ericdallo

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.

Cianidos avatar Feb 09 '26 20:02 Cianidos

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.

ericdallo avatar Feb 09 '26 20:02 ericdallo