VietCat commited on
Commit
7595c71
·
1 Parent(s): 3c8c274

refactor llm/embedding flow

Browse files
Files changed (1) hide show
  1. app/gemini_client.py +1 -1
app/gemini_client.py CHANGED
@@ -36,7 +36,7 @@ class GeminiClient:
36
  response = embed_content(
37
  model=self.model,
38
  content=text,
39
- task_type="retrieval_document"
40
  )
41
  logger.info(f"[GEMINI][EMBEDDING][RAW_RESPONSE] {response}")
42
  return response['embedding']
 
36
  response = embed_content(
37
  model=self.model,
38
  content=text,
39
+ task_type="retrieval_query"
40
  )
41
  logger.info(f"[GEMINI][EMBEDDING][RAW_RESPONSE] {response}")
42
  return response['embedding']