feat: RAG에 component_name_ko 추가 (성분 정보 개선)
This commit is contained in:
parent
c022ee21d0
commit
8b58ab0d3a
@ -2703,6 +2703,7 @@ def _get_animal_drug_rag(apc_codes):
|
||||
|
||||
result = conn.execute(text(f"""
|
||||
SELECT apc, product_name, main_ingredient,
|
||||
component_name_ko,
|
||||
llm_pharm->>'사용가능 동물' as target_animals,
|
||||
llm_pharm->>'분류' as category,
|
||||
llm_pharm->>'체중/부위' as dosage_weight,
|
||||
@ -2725,7 +2726,7 @@ def _get_animal_drug_rag(apc_codes):
|
||||
'usage_period': row.usage_period or '',
|
||||
'age_restriction': row.age_restriction or '',
|
||||
'owner_caution': row.owner_caution or '',
|
||||
'main_ingredient': row.main_ingredient_detail or row.main_ingredient or '',
|
||||
'main_ingredient': row.component_name_ko or row.main_ingredient_detail or row.main_ingredient or '',
|
||||
'description': row.description or '',
|
||||
'usage_for': row.usage_for or ''
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user