deepseek-ai / DeepSeek-Coder

DeepSeek Coder: Let the Code Write Itself
https://coder.deepseek.com/
MIT License
6.01k stars 433 forks source link

Can you augment the model with whole repo? #85

Open vladimirpekez opened 6 months ago

vladimirpekez commented 6 months ago

I am wondering can you augment the model with the whole repository and then reference it in the prompts? What would be the steps to try this out?

guoday commented 6 months ago

The DeepSeek-Coder supports inputting an entire repository, but the length should not exceed 16k. The specific approach is to concatenate the files and write the file path at the beginning of each file. You can refer to https://github.com/deepseek-ai/DeepSeek-Coder#4-repository-level-code-completion.