Open kgilpin opened 3 weeks ago
Title: Fix Path Stripping in Sonnet Output for File Query Responses
Problem: When generating responses for a choose_test_file
query, the Large Language Model (LLM) is incorrectly stripping necessary path elements (django__django-15022/source
) from file paths, leading to incomplete or incorrect paths being displayed in the response. This results in output that lacks crucial directory prefixes, causing confusion when attempting to locate or reference files.
Analysis:
django__django-15022/source
which are necessary for the correct reconstruction of file paths for the user.Proposed Changes:
Response Generation Logic
:
django__django-15022/source
.Path Handling Module
:
Testing and Validation
:
django__django-15022/source
) to systematically ensure that necessary components are retained in the output.Documentation Update
:
By implementing these changes, the response generation system will reliably output file paths that users can directly reference, ensuring an accurate and consistent user experience.
You mean the plan output? I think it's a losing battle, trying to get the model to always use absolute paths. We might want to find a way to handle relative paths instead.
Here's an answer to a
choose_test_file
query:In the search log, all the code snippets have the correct instance prefix
/home/runner/work/navie-benchmark/navie-benchmark/solve/django__django-15022
:But in the LLM output, the path elements
django__django-15022/source
have been stripped out.django__django-15022.zip