From 8b58ab0d3ac5ef1865852bd110a776e20a1a0496 Mon Sep 17 00:00:00 2001 From: thug0bin Date: Sat, 28 Feb 2026 11:35:21 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20RAG=EC=97=90=20component=5Fname=5Fko=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20(=EC=84=B1=EB=B6=84=20=EC=A0=95=EB=B3=B4?= =?UTF-8?q?=20=EA=B0=9C=EC=84=A0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app.py b/backend/app.py index d29a326..943d283 100644 --- a/backend/app.py +++ b/backend/app.py @@ -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 '' }