from fastapi import FastAPI import autorag # AutoRAG 패키지를 import 합니다. 실제 패키지 이름은 다를 수 있습니다. app = FastAPI() @app.get("/") def greet_json(): # AutoRAG를 실행하고 버전을 출력 autorag_version = autorag.__version__ # AutoRAG의 버전을 가져옵니다. # 여기에 AutoRAG를 실행하는 코드를 추가할 수 있습니다. # 예: result = autorag.run_some_function() return { "Hello": "AutoRAG World!", "AutoRAG Version": autorag_version, # "AutoRAG Result": result # AutoRAG 실행 결과를 포함할 수 있습니다. }