generative ai code generation backend