Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add context using ollama #612

Open
kantord opened this issue Jul 1, 2024 · 0 comments
Open

Add context using ollama #612

kantord opened this issue Jul 1, 2024 · 0 comments

Comments

@kantord
Copy link
Owner

kantord commented Jul 1, 2024

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant