evaluation for rag systems
This commit is contained in:
@@ -43,13 +43,18 @@ setup_logging()
|
||||
|
||||
app = FastAPI(title="LlamaIndex RAG API", version="1.0.0")
|
||||
|
||||
origins = [
|
||||
"*",
|
||||
]
|
||||
|
||||
# Add CORS middleware
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"], # In production, configure this properly
|
||||
allow_origins=origins, # In production, configure this properly
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
allow_private_network=True,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user