Maximize Qdrant utilization: richer memory payloads, filtered retrieval, and qdrant health in metrics API
This commit is contained in:
3
app.py
3
app.py
@@ -6,7 +6,7 @@ from datetime import datetime, timedelta
|
||||
import threading
|
||||
from db import init_db, SessionLocal, BotDecision, TradeExecution, CuratedInsight
|
||||
from bot import start_scheduler, run_cycle, curate_cycle
|
||||
from services import account_snapshot
|
||||
from services import account_snapshot, qdrant_memory_health
|
||||
|
||||
app = FastAPI(title="alpaca-llm-bot-v1")
|
||||
templates = Jinja2Templates(directory="templates")
|
||||
@@ -94,6 +94,7 @@ def api_metrics(hours: int = 72):
|
||||
"cumulativeNotional": t_values,
|
||||
},
|
||||
"leaderboard": leaderboard,
|
||||
"qdrant": qdrant_memory_health(),
|
||||
}
|
||||
finally:
|
||||
db.close()
|
||||
|
||||
Reference in New Issue
Block a user