Improve dependencies generation and get good references from the Gemini context