HyperAIHyperAI

Command Palette

Search for a command to run...

Neural Code Search Revisited: Enhancing Code Snippet Retrieval through Natural Language Intent

Geert Heyman Tom Van Cutsem

Abstract

In this work, we propose and study annotated code search: the retrieval ofcode snippets paired with brief descriptions of their intent using naturallanguage queries. On three benchmark datasets, we investigate how coderetrieval systems can be improved by leveraging descriptions to better capturethe intents of code snippets. Building on recent progress in transfer learningand natural language processing, we create a domain-specific retrieval modelfor code annotated with a natural language description. We find that our modelyields significantly more relevant search results (with absolute gains up to20.6% in mean reciprocal rank) compared to state-of-the-art code retrievalmethods that do not use descriptions but attempt to compute the intent ofsnippets solely from unannotated code.


Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing

HyperAI Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp