asefasdfcv commited on
Commit
301540b
·
verified ·
1 Parent(s): 47601ee

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +8 -0
main.py CHANGED
@@ -513,6 +513,14 @@ async def find_similar_items_api(
513
  "matches": matches,
514
  "db_coverage_percent": round(db_coverage, 2)
515
  }
 
 
 
 
 
 
 
 
516
 
517
  response_data = {
518
  "success": True,
 
513
  "matches": matches,
514
  "db_coverage_percent": round(db_coverage, 2)
515
  }
516
+
517
+ if matches:
518
+ logger.info("=== 매칭 결과 첫 번째 항목 상세 정보 ===")
519
+ logger.info(f"foundItemId: {matches[0]['foundItemId']}")
520
+ logger.info(f"lostItemId: {matches[0]['lostItemId']}")
521
+ logger.info(f"item ID: {matches[0]['item']['id']}")
522
+ logger.info(f"similarity: {matches[0]['similarity']}")
523
+ logger.info("===================================")
524
 
525
  response_data = {
526
  "success": True,