Update rag_chain.py
This commit is contained in:
parent
beebdd0760
commit
516dae0404
@ -22,10 +22,6 @@ def build_rag_chain():
|
||||
# })
|
||||
OPENAI_API_KEY="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"
|
||||
|
||||
client3 = weaviate.Client(
|
||||
url="http://183.111.96.67:32668", # 예: "http://183.111.96.67:32668"
|
||||
auth_client_secret=auth
|
||||
)
|
||||
# client = Client(
|
||||
# connection_params=ConnectionParams.from_http(
|
||||
# host="183.111.96.67", # 도메인 or IP
|
||||
@ -100,6 +96,12 @@ def build_rag_chain():
|
||||
else:
|
||||
print("연결 실패 2. 서버 상태를 확인하세요.")
|
||||
|
||||
|
||||
client3 = weaviate.connect_to_weaviate_cloud(
|
||||
url="s4x71b3lt32z3md1ya0yw.c0.asia-southeast1.gcp.weaviate.cloud", # 예: "http://183.111.96.67:32668"
|
||||
auth_credentials=Auth.api_key("0ojxypfXy2Y1rKw3KQdBUtwcWSrYPWitE7Qu")
|
||||
)
|
||||
|
||||
if client3.is_ready():
|
||||
print("Weaviate 3 연결 성공!")
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user