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 = { # connection_params = {
"http": { # "http": {
"host": "183.111.96.67", # "host": "183.111.96.67",
"port": 32668, # "port": 32668,
"secure": False # "secure": False
}, # },
"grpc": { # "grpc": {
"host": "183.111.96.67", # "host": "183.111.96.67",
"port": 32619, # "port": 32619,
"secure": False # "secure": False
}, # },
"auth_credentials": auth_config # "auth_credentials": auth_config
# }
http_config = {
"host": "183.111.96.67",
"port": 32668,
"secure": False
}
grpc_config = {
"host": "183.111.96.67",
"port": 32619,
"secure": False
} }
# connection_params = ConnectionParams( # connection_params = ConnectionParams(
@ -64,6 +74,12 @@ def build_rag_chain():
# auth_credentials=auth_config # auth_credentials=auth_config
# ) # )
connection_params = ConnectionParams(
http=http_config,
grpc=grpc_config,
auth_credentials=auth
)
client = WeaviateClient(connection_params=connection_params) client = WeaviateClient(connection_params=connection_params)
# client = weaviate.connect_to_custom( # client = weaviate.connect_to_custom(