diff --git a/app/rag_chain.py b/app/rag_chain.py index 925335e..51317cf 100644 --- a/app/rag_chain.py +++ b/app/rag_chain.py @@ -37,19 +37,33 @@ def build_rag_chain(): # ) # ) - connection_params = ConnectionParams( - http=HttpConfig( - host="183.111.96.67", - port=32668, - secure=False), - grpc=GrpcConfig( - host="183.111.96.67", - port=32619, - secure=False), - auth_credentials=auth_config - ) + 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 + } - client = WeaviateClient(connection_params) + # connection_params = ConnectionParams( + # http=HttpConfig( + # host="183.111.96.67", + # port=32668, + # secure=False), + # grpc=GrpcConfig( + # host="183.111.96.67", + # port=32619, + # secure=False), + # auth_credentials=auth_config + # ) + + client = WeaviateClient(connection_params=connection_params) # client = weaviate.connect_to_custom( # http_host="183.111.96.67",