Update rag_chain.py
This commit is contained in:
parent
994470e53e
commit
d3a9bc76b2
@ -74,6 +74,7 @@ def build_rag_chain():
|
|||||||
# auth_cre= AuthCredentials.api_key("01js3q6y7twaxccm5dbh3se9bt")
|
# auth_cre= AuthCredentials.api_key("01js3q6y7twaxccm5dbh3se9bt")
|
||||||
|
|
||||||
# 커넥션 설정 (http, grpc 둘 다)
|
# 커넥션 설정 (http, grpc 둘 다)
|
||||||
|
auth_client_secret=Auth.api_key("01js3q6y7twaxccm5dbh3se9bt")
|
||||||
connection_params = ConnectionParams.from_params(
|
connection_params = ConnectionParams.from_params(
|
||||||
http_host="183.111.96.67",
|
http_host="183.111.96.67",
|
||||||
http_port=32668,
|
http_port=32668,
|
||||||
@ -83,7 +84,7 @@ def build_rag_chain():
|
|||||||
grpc_secure=False
|
grpc_secure=False
|
||||||
)
|
)
|
||||||
|
|
||||||
client4 = WeaviateClient(connection_params=connection_params, auth=auth)
|
client4 = WeaviateClient(connection_params=connection_params, auth_client_secret=auth_client_secret)
|
||||||
|
|
||||||
if client4.is_ready():
|
if client4.is_ready():
|
||||||
print("Weaviate 4 연결 성공!")
|
print("Weaviate 4 연결 성공!")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user