Created
May 27, 2026 17:45
-
-
Save ricardocuellar/2b261e84b548e3f9b470b686b8d2535e to your computer and use it in GitHub Desktop.
Python IA Aplicada - Sección 9 - Funcion show welcome en demo rag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def show_welcome(num_chunks: int) -> None: | |
| """Muestra el mensaje de bienvenida con estado del sistema.""" | |
| print("\n" + "=" * 60) | |
| print("🔍 RAG Interactivo — Chat con tus documentos") | |
| print("=" * 60) | |
| print(f" Carpeta de documentos: {DOCUMENTS_DIR}") | |
| print(f" Chunks en el índice: {num_chunks}") | |
| print() | |
| print(" Comandos:") | |
| print(" 'archivos' → ver archivos indexados") | |
| print(" 'reindexar' → recargar archivos del disco") | |
| print(" 'chunks' → ver cantidad de chunks") | |
| print(" 'salir' → terminar") | |
| print("-" * 60) | |
| print() | |
| def main() -> None: | |
| print("=" * 60) | |
| print("Iniciando RAG con archivos reales...") | |
| print("=" * 60) | |
| if __name__ == "__main__": | |
| main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment