Develop a CLI command corpora workon <filepath> that opens an interactive REPL-like session. Users can provide natural language commands to iteratively refine the specified file, viewing and choosing possible revisions in each iteration. Utilize Retrieval-Augmented Generation (RAG) to provide contextually relevant suggestions.
Context
The project includes the corpora plan issue command which serves a similar purpose of interacting through a REPL to refine an issue creation. This command should draw from that design to help users refine a file through interactive commands.
Requirements
Interactive Session: Enable users to initiate a session by running corpora workon <filepath>. The session should support:
Prompting the user for input as natural language commands or suggestions.
Displaying potential revisions of the file based on the input.
Allowing users to choose or reject revisions to iteratively refine the file.
Providing contextual information to guide file edits.
Fetching relevant data from the existing corpus to enhance suggestions.
User Experience: Ensure the interactive environment is intuitive and user-friendly. Feedback should be immediate, and users should feel in control of the file revision process.
Considerations
Leverage the existing infrastructure used by the corpora plan issue to manage interactive sessions efficiently.
Determine how the chatbot identifies the specific file and maintains its state throughout the session.
Evaluate the need for additional dependencies or changes to existing API endpoints for integration with RAG techniques.
Outcome
A new CLI command corpora workon that enables an iterative, RAG-powered file refinement process, improving user interaction with the tools for enhancing corpora.
Objective
Develop a CLI command
corpora workon <filepath>
that opens an interactive REPL-like session. Users can provide natural language commands to iteratively refine the specified file, viewing and choosing possible revisions in each iteration. Utilize Retrieval-Augmented Generation (RAG) to provide contextually relevant suggestions.Context
The project includes the
corpora plan issue
command which serves a similar purpose of interacting through a REPL to refine an issue creation. This command should draw from that design to help users refine a file through interactive commands.Requirements
Interactive Session: Enable users to initiate a session by running
corpora workon <filepath>
. The session should support:RAG Integration: Incorporate Retrieval-Augmented Generation for:
User Experience: Ensure the interactive environment is intuitive and user-friendly. Feedback should be immediate, and users should feel in control of the file revision process.
Considerations
corpora plan issue
to manage interactive sessions efficiently.Outcome
A new CLI command
corpora workon
that enables an iterative, RAG-powered file refinement process, improving user interaction with the tools for enhancing corpora.