Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WriteCode.get_codes fetches unexpectedly large amount of data. #1627

Open
davidleon opened this issue Dec 5, 2024 · 1 comment
Open

WriteCode.get_codes fetches unexpectedly large amount of data. #1627

davidleon opened this issue Dec 5, 2024 · 1 comment

Comments

@davidleon
Copy link

Bug description
code_context = await WriteCode.get_codes(
self.i_context.task_doc,
exclude=self.i_context.filename,
project_repo=self.repo.with_src_path(self.context.src_workspace),
use_inc=self.config.inc,
)
code context might exceed the llm max_token

Bug solved method
len(code_context)
213693
extremely large amount of code files are retrieved.
maybe retrieve only few context relevant files. and work on that with few iterations and summarize irrevelent part or using RAG to minimize the relevant data.

@shenchucheng
Copy link
Collaborator

Thank you for your suggestion! This issue indeed exists. In the new version, we no longer use WriteCode for code writing. Instead, we have introduced the Editor tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants