# web_server.py - Web interface using Flask from rag_core import RagCore from rag_cli import RagCLI from flask import Flask, request, jsonify, render_template # main.py - Entry point that allows choosing between CLI and web interface def main(): import argparse parser = argparse.ArgumentParser(description='RAG Application') parser.add_argument('--debug', action='store_true', help='Run in debug mode') args = parser.parse_args() # Create the core RAG application core = RagCore() # Run CLI interface cli = RagCLI(core) cli.run() if __name__ == "__main__": main()