Update rag_chain.py

This commit is contained in:
localsoo 2025-04-21 02:06:39 +00:00
parent 0d807ab4b6
commit bc95b8bc41

@ -13,7 +13,7 @@ from langchain.embeddings import OpenAIEmbeddings
def build_rag_chain():
# 1. Weaviate 클라이언트
auth_config = weaviate.AuthApiKey(api_key="01js3q6y7twaxccm5dbh3se9bt")
auth = weaviate.AuthApiKey(api_key="01js3q6y7twaxccm5dbh3se9bt")
# client = weaviate.connect_to_weaviate_cloud(cluster_url="http://183.111.96.67:32668",
# auth_credentials=Auth.api_key("01js3q6y7twaxccm5dbh3se9bt"),
@ -34,7 +34,7 @@ def build_rag_chain():
# host="183.111.96.67", # 도메인 or IP
# port=32668, # 포트
# secure=False, # HTTP면 False, HTTPS면 True
# auth_credentials=auth_config
# auth_credentials=auth
# )
# )
@ -49,7 +49,7 @@ def build_rag_chain():
# "port": 32619,
# "secure": False
# },
# "auth_credentials": auth_config
# "auth_credentials": auth
# }
http_config = {
"host": "183.111.96.67",