Update retriever.py

This commit is contained in:
groupuser 2025-04-23 01:58:58 +00:00
parent 98c9237aad
commit 0bcec97904

@ -14,10 +14,10 @@ weaviate_api_key = os.getenv("WEAVIATE_API_KEY", "01jse60hwsf37za5kmnkzzcwa9")
def get_retriever():
client = weaviate.connect_to_custom(
http_host=http_host, # Hostname for the HTTP API connection
http_port=32656, # Default is 80, WCD uses 443
http_port=31008, # Default is 80, WCD uses 443
http_secure=False, # Whether to use https (secure) for the HTTP API connection
grpc_host=grpc_host, # Hostname for the gRPC API connection
grpc_port=30498, # Default is 50051, WCD uses 443
grpc_port=30311, # Default is 50051, WCD uses 443
grpc_secure=False, # Whether to use a secure channel for the gRPC API connection
auth_credentials=Auth.api_key(weaviate_api_key), # API key for authentication
)