|
|
|
|
|
by itissid
1034 days ago
|
|
Copilot currently keeps in context the file you are editing. Cross file support is coming but not here.(https://githubnext.com/projects/copilot-view/). But it would be very very useful. One logical concept that's also been noodling in my brain was to construct a DFA(Deterministic finite automata) from the code seen in all the files and then offer the n-1 tokens to the language model and constrain the nth token's selection from the valid ones. I recall someone did this for things that produce DFAs that are fairly small in size(like JSON) and that essentially produced 100% valid JSON without hallucinations(It could be garbage JSON). So for example if I had a `class ABC` then typing `abc.` could produce:
1. all the methods on it that were valid and
2. had arguments from the surrounding code informed by the LLM. |
|