Update rag_chain.py
This commit is contained in:
parent
9f4bbc6adc
commit
cdf6f84bed
@ -37,19 +37,33 @@ def build_rag_chain():
|
|||||||
# )
|
# )
|
||||||
# )
|
# )
|
||||||
|
|
||||||
connection_params = ConnectionParams(
|
connection_params = {
|
||||||
http=HttpConfig(
|
"http": {
|
||||||
host="183.111.96.67",
|
"host": "183.111.96.67",
|
||||||
port=32668,
|
"port": 32668,
|
||||||
secure=False),
|
"secure": False
|
||||||
grpc=GrpcConfig(
|
},
|
||||||
host="183.111.96.67",
|
"grpc": {
|
||||||
port=32619,
|
"host": "183.111.96.67",
|
||||||
secure=False),
|
"port": 32619,
|
||||||
auth_credentials=auth_config
|
"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(
|
# client = weaviate.connect_to_custom(
|
||||||
# http_host="183.111.96.67",
|
# http_host="183.111.96.67",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user