Skip to content

Add context using ollama #612

Open
Open
@kantord

Description

@kantord

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions