llamaindex server port change

This commit is contained in:
2026-02-26 15:15:02 +03:00
parent 9ec3d9281d
commit c6715eb021

View File

@@ -3,13 +3,13 @@
HTTP API server for querying the vector storage via the existing retrieval pipeline.
"""
from pathlib import Path
import sys
from pathlib import Path
from dotenv import load_dotenv
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel, Field
from loguru import logger
from pydantic import BaseModel, Field
from retrieval import initialize_retriever
@@ -91,9 +91,7 @@ def test_query(payload: TestQueryRequest) -> TestQueryResponse:
)
response_text = str(result)
logger.info(
f"/api/test-query completed successfully (sources={len(sources)})"
)
logger.info(f"/api/test-query completed successfully (sources={len(sources)})")
return TestQueryResponse(query=query, response=response_text, sources=sources)
except HTTPException:
@@ -106,4 +104,4 @@ def test_query(payload: TestQueryRequest) -> TestQueryResponse:
if __name__ == "__main__":
import uvicorn
uvicorn.run("server:app", host="0.0.0.0", port=8000, reload=False)
uvicorn.run("server:app", host="0.0.0.0", port=8334, reload=False)