File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,9 @@ def __init__(self, doc_path: str):
4646 # Initialize Weaviate client first
4747 weaviate_host = os .getenv ("WEAVIATE_HOST" , "localhost" )
4848 weaviate_port = os .getenv ("WEAVIATE_PORT" , "8083" )
49- # Use custom connection with explicit HTTP and gRPC configuration
50- self .weaviate_client = weaviate .connect_to_custom (
51- http_host = weaviate_host ,
52- http_port = int (weaviate_port ),
53- http_secure = False , # HTTP, not HTTPS
54- grpc_host = weaviate_host ,
55- grpc_port = 50051 ,
56- grpc_secure = False , # gRPC, not gRPCS
49+ # Use HTTP-only connection since gRPC is not exposed
50+ self .weaviate_client = weaviate .connect_to_weaviate (
51+ url = f"http://{ weaviate_host } :{ weaviate_port } " ,
5752 skip_init_checks = True ,
5853 additional_config = weaviate .init .AdditionalConfig (
5954 timeout = weaviate .init .Timeout (init = 60 )
You can’t perform that action at this time.
0 commit comments