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

Closed
davidleon opened this issue Dec 5, 2024 · 3 comments
Closed

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

davidleon opened this issue Dec 5, 2024 · 3 comments
Labels

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.

Copy link

github-actions bot commented Jan 9, 2025

This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.

Copy link

This issue was closed due to 45 days of inactivity. If you feel this issue is still relevant, please reopen the issue to continue the discussion.

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

No branches or pull requests

2 participants