Skip to content

Commit 02da7bf

Browse files
committed
Fix Weaviate client initialization error by removing weaviate.init.AdditionalConfig
1 parent 955b1e3 commit 02da7bf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

genAi/rag.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class RAGHelper:
4545
def __init__(self, doc_path: str):
4646
# Initialize Weaviate client first
4747
weaviate_host = os.getenv("WEAVIATE_HOST", "localhost")
48-
weaviate_port = os.getenv("WEAVIATE_PORT", "8083")
48+
weaviate_port = os.getenv("WEAVIATE_PORT", "8087")
4949
# Use custom connection with HTTP only since gRPC is not exposed
5050
self.weaviate_client = weaviate.connect_to_custom(
5151
http_host=weaviate_host,
@@ -54,10 +54,7 @@ def __init__(self, doc_path: str):
5454
grpc_host=weaviate_host,
5555
grpc_port=50051,
5656
grpc_secure=False,
57-
skip_init_checks=True,
58-
additional_config=weaviate.init.AdditionalConfig(
59-
timeout=weaviate.init.Timeout(init=60)
60-
)
57+
skip_init_checks=True
6158
)
6259

6360
# Load documents

0 commit comments

Comments
 (0)