roknovosel
Joined 9 years ago
Joined 9 years ago
It is a semantic code search tool that can be queried using natural language. It provides decent answers to a variety of questions, and I've been finding myself using it quite often to "autocomplete" various mundane tasks. For example, plotting with matplotlib, making http requests in Go, running multiple goroutines, etc. - things where I would usually reach for Google. It doesn't provide a straightforward ready-to-run answer like CoPilot, but it does provide a way to help yourself. It all depends on what you prefer and how you learn. Arguably, having to read the code before you use it makes it more likely it will stick in your brain.
I've been interested in contrastive learning for a while, mainly as a means to train semantic code search models. OpenAI released a great paper on this topic called Text and Code Embeddings by Contrastive Pre-Training[1] that outlines the approach. I've used it as a base to build https://codesearch.ai [2] with pretty good results.
[1] https://arxiv.org/pdf/2201.10005.pdf [2] https://sourcegraph.com/notebooks/Tm90ZWJvb2s6MTU1OQ==