salesforce / CodeGen

CodeGen is a family of open-source model for program synthesis. Trained on TPU-v4. Competitive with OpenAI Codex.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get embedding for javascript and python code snippet?

smith-co opened this issue · comments

I have a couple of questions:

a) How can I use CodeGen to extract embedding for JavaScript and Python code?
b) Can I feed incomplete code JavaScript and Python snippet to extract embedding? Or the code snippet needs to be complete?
c) Have anyone used CodeGen to perform code to code search?

you can wrap this model into a web application, provide code generation services, and develop a vs code extension that generates code snippets when pressed ':' or '{'.
such as :
backend service: https://github.com/git-cloner/codegen
vs code extension: https://github.com/git-cloner/codegeeker

commented

@little51 interesting. How does it compare with CoPilot?

As Comparison with GitHub copilot #17 (#17), CoPilot is the product, Codegeeker uses the salesforce/Codegen model is open source, there is still a big gap with CoPilot, due to the limitation of computing power, git-cloner/ codegen uses the smallest model (codegen-350M-nl), and the extension has just been released and is still being improved