| """ | |
| Startup script for the RAG Chatbot application | |
| """ | |
| import asyncio | |
| from app.services.document_ingestion import initialize_knowledge_base | |
| def main(): | |
| """Main startup function""" | |
| print("Starting RAG Chatbot application...") | |
| # Initialize the knowledge base | |
| print("Initializing knowledge base...") | |
| document_ids = initialize_knowledge_base() | |
| print(f"Knowledge base initialized with {len(document_ids)} documents.") | |
| print("Application startup complete!") | |
| if __name__ == "__main__": | |
| main() |