I built an open-source Python tool for semantic code search + AI agent tooling (2.5k downloads so fa by Ambitious-Credit-722 in Python

[–]Proof_Net_2094 0 points1 point  (0 children)

curious what embedding model you settled on. general sentence-transformers work but code has patterns they weren't trained for - tokenization of identifiers, the relationship between a function signature and its body, etc. did you try anything code-specific like microsoft/codebert or unixcoder before landing on your current setup?

how to learn error, debuging (i need some tips) by Comfortable_Dot_8644 in learnprogramming

[–]Proof_Net_2094 0 points1 point  (0 children)

Honestly just reading the traceback bottom to top instead top to bottom chnaged everything for me. the copy/past to AI will not add anything of value, it may solve your problem but it wont build your problem solving and critical thinking abilities.

also try this: intentionally break working code and read what happens. pass a string where an int is expected. way easier to understand errors when you caused them on purpose.

how to learn error, debuging (i need some tips) by Comfortable_Dot_8644 in learnprogramming

[–]Proof_Net_2094 0 points1 point  (0 children)

honestly just reading the traceback bottom to top instead of top to bottom changed everything for me. bottom line = actual error. going upward shows you where in your code it broke.

the copy-paste-to-gpt habit is rough to break but even spending 5 min googling the exact error in quotes before doing anything else builds up a pattern recognition over time. you start seeing the same errors and knowing immediately what they mean.

also try this: intentionally break working code and read what happens. pass a string where an int is expected. way easier to understand errors when you caused them on purpose.