SeaGOAT icon indicating copy to clipboard operation
SeaGOAT copied to clipboard

Add context using `ollama`

Open kantord opened this issue 7 months ago • 0 comments

There are some examples of code that is easy (or at least possible) to understand with background or context knowledge. One example could be abstract mathematical formulas such as:

def g(p, r, t, n):
    a = p * (1 + r/n)**(n*t)
    return a

While we can say that this is not great code, it would still be great if SeaGOAT allowed finding such code fragments. One way of that would be to use some heuristic to detect such scenarios (such as a code consisting mostly of short variable names, or having a lot of operands) and use ollama using a fast model in order to annotate such chunks

kantord avatar Jul 01 '24 07:07 kantord