Elffuss BraidHub

kikocis/continue public

68dbf00e2c2f · 1.5 KiBSourceRawPermalink

title: How it works description: How Autocomplete works keywords: [how, autocomplete, context] sidebar_position: 4

Autocomplete is a compound AI system that uses a combination of retrieval methods and response processing techniques. The system can be understood in roughly three parts.

Timing

In order to display suggestions quickly, without sending too many requests, we do the following:

Context

As explained on the context selection page, Continue uses a number of retrieval methods to find relevant snippets from your codebase to include in the prompt.

Filtering

Language models aren't perfect, but can be made much closer by adjusting their output. We do extensive post-processing on responses before displaying a suggestion, including:

We will also occasionally entirely filter out responses if they are bad. This is often due to extreme repetition.

You can learn more about how it works in the Autocomplete deep dive.