The study examined code generation involving private libraries, which are often absent from the public material used to train language models. The researchers found that supplying API documentation alone did not reliably teach models how to call those APIs correctly.

They developed PriCoder, which automatically creates training examples for a target library and then fine-tunes the model on them. Its data-generation process builds from basic API knowledge toward more varied examples and filters the resulting data for quality. On two benchmarks using libraries unfamiliar to the tested models, PriCoder improved performance across all evaluated models and generally outperformed retrieval-based approaches on standard code-generation tests.