@@ -537,8 +537,8 @@ def _show_welcome(self):
537537 # Show RAG and Fast Mode status with humor
538538 try :
539539 rag_config = self .config_manager .config .codebase_rag
540- rag_enabled = rag_config .enabled if rag_config else True
541- fast_mode = rag_config .fast_mode if rag_config else False
540+ rag_enabled = rag_config .enabled if rag_config else False # Default to disabled
541+ fast_mode = rag_config .fast_mode if rag_config else True # Default to enabled
542542
543543 # RAG status
544544 if self .codebase_rag and self .codebase_rag .enabled :
@@ -564,26 +564,28 @@ def _show_welcome(self):
564564 console .print (f" { rag_status } " )
565565 console .print (f" { fast_status } " )
566566
567- # Add humorous message about quality vs speed
567+ # Add message about quality vs speed
568568 if rag_enabled and not fast_mode :
569569 console .print ()
570- console .print ("[dim]💡 Awesomeness takes time (but you can toggle anytime!) [/dim]" )
570+ console .print ("[dim]💡 RAG enabled - better code quality, slower responses [/dim]" )
571571 console .print (
572572 "[dim] Use [cyan]/fast-mode on[/cyan] for faster responses or check [cyan]/status[/cyan] for details[/dim]"
573573 )
574574 elif not rag_enabled :
575575 console .print ()
576- console .print ("[dim]💡 RAG disabled - faster startup, lower code quality[/dim]" )
577576 console .print (
578- "[dim] Use [cyan]/enable-rag[/cyan] to enable or check [cyan]/status[/cyan] for details[/dim]"
577+ "[dim]💡 Fast mode ON, RAG disabled - quick responses, lower code quality[/dim]"
578+ )
579+ console .print (
580+ "[dim] Use [cyan]/enable-rag[/cyan] and [cyan]/fast-mode off[/cyan] for better quality (slower)[/dim]"
579581 )
580582 elif fast_mode :
581583 console .print ()
582584 console .print (
583585 "[dim]💡 Fast mode enabled - quick responses, slightly lower quality[/dim]"
584586 )
585587 console .print (
586- "[dim] Use [cyan]/fast-mode off [/cyan] for better quality or check [cyan]/status [/cyan] for details [/dim]"
588+ "[dim] Use [cyan]/enable-rag [/cyan] and [cyan]/fast-mode off [/cyan] for better quality (slower) [/dim]"
587589 )
588590 except Exception as e :
589591 logger .debug (f"Error showing performance status: { e } " )
@@ -1024,6 +1026,9 @@ def _handle_create_module(self, user_input: str):
10241026 console .print ("[dim]✓ Code ready - use [cyan]/save <filename>[/cyan] to save it[/dim]" )
10251027 console .print ()
10261028
1029+ # Show RAG tip if disabled
1030+ self ._show_rag_tip_if_needed ()
1031+
10271032 show_next_steps (
10281033 [
10291034 "Type [cyan]/save <filename>[/cyan] to save this code" ,
@@ -1095,6 +1100,9 @@ def _handle_create_program(self, user_input: str):
10951100 console .print ("[dim]✓ Code ready - use [cyan]/save <filename>[/cyan] to save it[/dim]" )
10961101 console .print ()
10971102
1103+ # Show RAG tip if disabled
1104+ self ._show_rag_tip_if_needed ()
1105+
10981106 show_next_steps (
10991107 [
11001108 "Type [cyan]/save <filename>[/cyan] to save this code" ,
@@ -1814,6 +1822,10 @@ def _handle_general_query(self, user_input: str):
18141822 self .current_context ["type" ] = "module"
18151823 show_code_panel (code , "Generated DSPy Code" , "python" )
18161824 show_success_message ("Code generated!" )
1825+
1826+ # Show RAG tip if disabled
1827+ self ._show_rag_tip_if_needed ()
1828+
18171829 show_next_steps (
18181830 [
18191831 "Type [cyan]/save <filename>[/cyan] to save this code" ,
@@ -2037,9 +2049,38 @@ def _is_fast_mode(self) -> bool:
20372049 """Check if fast mode is enabled."""
20382050 try :
20392051 rag_config = self .config_manager .config .codebase_rag
2040- return rag_config .fast_mode if rag_config else False
2052+ return rag_config .fast_mode if rag_config else True # Default to enabled
20412053 except :
2042- return False
2054+ return True # Default to enabled
2055+
2056+ def _show_rag_tip_if_needed (self ):
2057+ """Show tip to enable RAG if it's disabled."""
2058+ # Only show once per session
2059+ if hasattr (self , "_rag_tip_shown" ):
2060+ return
2061+
2062+ try :
2063+ rag_config = self .config_manager .config .codebase_rag
2064+ rag_enabled = rag_config .enabled if rag_config else False
2065+ fast_mode = rag_config .fast_mode if rag_config else True
2066+
2067+ # Only show if RAG is disabled
2068+ if rag_enabled :
2069+ return
2070+
2071+ console .print ()
2072+ console .print (
2073+ "[yellow]💡 Tip:[/yellow] Want better code quality? "
2074+ "[cyan]/enable-rag[/cyan] and [cyan]/fast-mode off[/cyan] "
2075+ "(slower but more accurate)"
2076+ )
2077+ console .print ("[dim] Current: Fast mode ON, RAG OFF - quick responses[/dim]" )
2078+ console .print ("[dim] Better: RAG ON, Fast mode OFF - slower but higher quality[/dim]" )
2079+ console .print ()
2080+
2081+ self ._rag_tip_shown = True
2082+ except Exception :
2083+ pass
20432084
20442085 def _show_performance_tip_if_needed (self , generation_time : float ):
20452086 """Show performance tip after slow response."""
@@ -3507,6 +3548,43 @@ def _show_welcome_screen(console, context, config_manager):
35073548 console .print (Align .center (model_info ))
35083549 console .print ()
35093550
3551+ # Show RAG and Fast Mode status
3552+ try :
3553+ if config_manager :
3554+ rag_config = config_manager .config .codebase_rag
3555+ rag_enabled = rag_config .enabled if rag_config else False # Default to disabled
3556+ fast_mode = rag_config .fast_mode if rag_config else True # Default to enabled
3557+
3558+ # Performance status using Rich Text properly
3559+ perf_text = Text ()
3560+ perf_text .append ("⚡ Performance: " , style = "dim" )
3561+ perf_text .append ("RAG " , style = "dim" )
3562+ if rag_enabled :
3563+ perf_text .append ("ON" , style = "bold green" )
3564+ else :
3565+ perf_text .append ("OFF" , style = "bold red" )
3566+ perf_text .append (" | Fast Mode " , style = "dim" )
3567+ if fast_mode :
3568+ perf_text .append ("ON" , style = "bold green" )
3569+ else :
3570+ perf_text .append ("OFF" , style = "bold yellow" )
3571+ console .print (Align .center (perf_text ))
3572+ console .print ()
3573+
3574+ # Show tip based on current settings
3575+ if not rag_enabled :
3576+ tip_text = Text ()
3577+ tip_text .append ("💡 " , style = "yellow" )
3578+ tip_text .append ("Quick responses | " , style = "dim" )
3579+ tip_text .append ("Enable RAG for better quality: " , style = "dim" )
3580+ tip_text .append ("/enable-rag" , style = "cyan" )
3581+ tip_text .append (" + " , style = "dim" )
3582+ tip_text .append ("/fast-mode off" , style = "cyan" )
3583+ console .print (Align .center (tip_text ))
3584+ console .print ()
3585+ except Exception :
3586+ pass
3587+
35103588 # Minimal help
35113589 console .print ("[dim]Type /help for commands or describe what you want to build[/dim]" )
35123590 console .print ()
0 commit comments