Closed kgilpin closed 3 weeks ago
Title: Strip Fences from LLM Output in choose_test_files
Problem: The output from the choose_test_files
function includes unnecessary notation or fences (e.g., list item markers or comments) around file paths in its results. The presence of these fences can increase the difficulty of parsing and using these paths programmatically. The desired outcome is to have clean, unadorned file paths that can be easily utilized in subsequent operations.
Analysis: The current output of the choose_test_files
function contains file paths enclosed with list indentations or bullets. This formatting may have been intended for human-readable logs, but when these outputs are consumed programmatically by other parts of the system or for display purposes that require raw paths, the fences or bullets become extraneous and cumbersome. To resolve this, a solution is required that extracts and sanitizes these file paths, thus making them readily available for programmatic use.
The current implementation might rely on standard logging or representation functions which prepend additional characters for formatting. The objective here is to preprocess these entries such that these fences are removed, leaving only the essential file paths.
Proposed Changes:
solver/workflow/generate_test.py
:
choose_test_files
logic before it is displayed or logged.Function Logic (within generate_test.py
):
choose_test_files
function.By implementing these changes, the output of choose_test_files
will be more structured and devoid of any unnecessary characters around the paths, thus making it more syntactically useful for system integrations.
I'm not sure what you mean; the output you included doesn't contain any fences. Do you mean the backticks used to quote the paths? Perhaps it would be more robust to ask for structured output to choose test files.
LLM output for
choose_test_files
may include fences that we want to strip out:Note that
/home/runner/work/navie-benchmark/navie-benchmark/solve/astropy__astropy-13398/source/astropy/coordinates/tests/test_intermediate_transformations.py
is the correct test file to modify, based on the dataset results.