File tree Expand file tree Collapse file tree 4 files changed +0
-32
lines changed Expand file tree Collapse file tree 4 files changed +0
-32
lines changed Original file line number Diff line number Diff line change 33from .config import DBConfig
44from .logger import logger
55
6- from dotenv import load_dotenv
7-
86from .base_connector import BaseConnector
97
108from .clickhouse_connector import ClickHouseConnector
1816
1917env_path = os .path .join (os .getcwd (), ".env" )
2018
21- if os .path .exists (env_path ):
22- load_dotenv (env_path , override = True )
23- print (f"✅ 환경변수 파일(.env)이 { os .getcwd ()} 에 로드되었습니다!" )
24- else :
25- print (f"⚠️ 환경변수 파일(.env)이 { os .getcwd ()} 에 없습니다!" )
26-
2719
2820def get_db_connector (db_type : Optional [str ] = None , config : Optional [DBConfig ] = None ):
2921 """
Original file line number Diff line number Diff line change 88
99from .llm_factory import get_llm
1010
11- from dotenv import load_dotenv
1211from prompt .template_loader import get_prompt_template
1312
1413
15- env_path = os .path .join (os .getcwd (), ".env" )
16-
17- if os .path .exists (env_path ):
18- load_dotenv (env_path )
19- else :
20- print (f"⚠️ 환경변수 파일(.env)이 { os .getcwd ()} 에 없습니다!" )
21-
2214llm = get_llm ()
2315
2416
Original file line number Diff line number Diff line change 11import re
2- from llm_utils import llm_factory
3- from dotenv import load_dotenv
4- from langchain .chains .llm import LLMChain
52from langchain_openai import ChatOpenAI
6- from langchain_core .prompts import PromptTemplate
73from langchain_core .messages import HumanMessage , SystemMessage
84import pandas as pd
95import os
139import plotly .graph_objects as go
1410
1511
16- # .env 파일 로딩
17- load_dotenv ()
18-
19-
2012class DisplayChart :
2113 """
2214 SQL쿼리가 실행된 결과를 그래프로 시각화하는 Class입니다.
Original file line number Diff line number Diff line change 1818 OpenAIEmbeddings ,
1919)
2020
21- env_path = os .path .join (os .getcwd (), ".env" )
22-
23- if os .path .exists (env_path ):
24- load_dotenv (env_path , override = True )
25- print (f"✅ 환경변수 파일(.env)이 { os .getcwd ()} 에 로드되었습니다!" )
26- else :
27- print (f"⚠️ 환경변수 파일(.env)이 { os .getcwd ()} 에 없습니다!" )
28-
2921
3022def get_llm (** kwargs ) -> BaseLanguageModel :
3123 """
You can’t perform that action at this time.
0 commit comments