Update rag_chain.py

This commit is contained in:
localsoo 2025-04-21 04:20:43 +00:00
parent f60c7ccacb
commit 5d974908a1

@ -71,6 +71,7 @@ def build_rag_chain():
# auth_key = AuthCredentials.api_key("01js3q6y7twaxccm5dbh3se9bt") # 없으면 None
auth_cre= AuthCredentials.api_key(os.environ.get("01js3q6y7twaxccm5dbh3se9bt"))
# 커넥션 설정 (http, grpc 둘 다)
connection_params = ConnectionParams.from_params(
@ -80,7 +81,7 @@ def build_rag_chain():
grpc_host="183.111.96.67",
grpc_port=32619, # 예시 포트, 실제 grpc 포트 넣어야 함
grpc_secure=False,
auth_credentials=auth # 없으면 생략 가능
auth_credentials=auth_cre # 없으면 생략 가능
)
client4 = WeaviateClient(connection_params=connection_params)