Update rag_chain.py

This commit is contained in:
localsoo 2025-04-21 02:05:54 +00:00
parent cc2677c4f1
commit 0d807ab4b6

@ -38,18 +38,28 @@ def build_rag_chain():
# )
# )
connection_params = {
"http": {
# connection_params = {
# "http": {
# "host": "183.111.96.67",
# "port": 32668,
# "secure": False
# },
# "grpc": {
# "host": "183.111.96.67",
# "port": 32619,
# "secure": False
# },
# "auth_credentials": auth_config
# }
http_config = {
"host": "183.111.96.67",
"port": 32668,
"secure": False
},
"grpc": {
}
grpc_config = {
"host": "183.111.96.67",
"port": 32619,
"secure": False
},
"auth_credentials": auth_config
}
# connection_params = ConnectionParams(
@ -64,6 +74,12 @@ def build_rag_chain():
# auth_credentials=auth_config
# )
connection_params = ConnectionParams(
http=http_config,
grpc=grpc_config,
auth_credentials=auth
)
client = WeaviateClient(connection_params=connection_params)
# client = weaviate.connect_to_custom(