-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: add package query in draft.py (not yet enabled) #1083
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
Conversation
| # query their versions dynamically. | ||
| # --------------------------------------------------------------------- | ||
|
|
||
| def _package_query(self, scenario_desc: str) -> list[str]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this function to rdagent/scenarios/data_science/proposal/exp_gen/utils.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have now moved the functionality of this function to rdagent/scenarios/data_science/proposal/exp_gen/proposal.py, achieving it through one interaction with the Backend API. Therefore, I deem it unnecessary to implement it separately.
rdagent/scenarios/data_science/proposal/exp_gen/draft/prompts_draft.yaml
Outdated
Show resolved
Hide resolved
| ) | ||
|
|
||
| def get_runtime_environment(self) -> str: | ||
| def get_runtime_environment(self, pkgs: list[str] | None = None) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make this function callable from docker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function wasn’t docker-callable before my changes.
Do we really need Docker support here, or can we just keep it simple for now?
…ment - Remove pkg_query modifications from draft components - Add package declaration requirement in task_gen prompts - Add optional packages field to CodingSketch model - Cache runtime_environment in scenario object for loop-wide reuse - Parse packages from LLM response and generate runtime environment dynamically
| "torch", | ||
| "tensorflow", | ||
| "pandas", | ||
| "numpy", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list(set(A) + set(B))
* feat: add package query in draft.py (not yet enabled) * feat: integrate package query into task_gen and cache runtime environment - Remove pkg_query modifications from draft components - Add package declaration requirement in task_gen prompts - Add optional packages field to CodingSketch model - Cache runtime_environment in scenario object for loop-wide reuse - Parse packages from LLM response and generate runtime environment dynamically * some refinement * feat: merge default packages with CLI args in package_info.py * fix: code style --------- Co-authored-by: Qizheng Li <[email protected]>
Description
Motivation and Context
How Has This Been Tested?
Screenshots of Test Results (if appropriate):
Types of changes
📚 Documentation preview 📚: https://RDAgent--1083.org.readthedocs.build/en/1083/