VietCat commited on
Commit
84c1dff
·
1 Parent(s): 1b3b0fc

add data viewer

Browse files
Files changed (1) hide show
  1. app/main.py +3 -1
app/main.py CHANGED
@@ -369,7 +369,9 @@ async def process_business_logic(log_kwargs: Dict[str, Any], page_token: str) ->
369
  # Có thông tin phương tiện
370
  if action:
371
  logger.info(f"[DEBUG] tạo embedding: {action}")
372
- embedding = await embedding_client.create_embedding(action)
 
 
373
  logger.info(f"[DEBUG] embedding: {embedding[:5]} ... (total {len(embedding)})")
374
  matches = supabase_client.match_documents(embedding, vehicle_keywords=keywords)
375
  logger.info(f"[DEBUG] matches: {matches}")
 
369
  # Có thông tin phương tiện
370
  if action:
371
  logger.info(f"[DEBUG] tạo embedding: {action}")
372
+ # TẠM THỜI COMMENT LẠI EMBEDDING ĐỂ TEST
373
+ # embedding = await embedding_client.create_embedding(action)
374
+ embedding = [0.0] * 768 # Placeholder embedding cho test
375
  logger.info(f"[DEBUG] embedding: {embedding[:5]} ... (total {len(embedding)})")
376
  matches = supabase_client.match_documents(embedding, vehicle_keywords=keywords)
377
  logger.info(f"[DEBUG] matches: {matches}")