Can the commented code also be included in RAG?

Here is an example to illustrate: Suppose there is a feature implemented using two different methods, but one of the methods has been commented out. When using Tabby in Visual Studio Code, can you see the commented-out method?



Asked on Apr 11, 2024

  • Yes, commented-out code can be included in RAG.
  • Tabby in Visual Studio Code can display the commented-out method along with the active code.


// Active method
fn active_method() {
    // Code implementation

// Commented-out method
// fn commented_out_method() {
//     // Code implementation
// }
Apr 11, 2024Edited by