In the original Weaviate Python client library, it's possible to specify different hosts for the REST and gRPC connections using the ConnectionParams class:
This configuration allows me to connect to the REST API and gRPC services using different hosts and ports.
Issue:
In Haystack's WeaviateDocumentStore, there doesn't seem to be an option to specify separate hosts for the REST API and gRPC connections. The url parameter sets both to the same host, and there's no exposed parameter to set a different gRPC host.
To Reproduce
Here's the current initialization in Haystack:
from haystack_integrations.document_stores.weaviate.document_store import WeaviateDocumentStore
from haystack_integrations.document_stores.weaviate.auth import AuthApiKey
document_store = WeaviateDocumentStore(
url="https://weaviate.xxyy.com",
auth_client_secret=AuthApiKey(api_key="your_weaviate_api_key"),
grpc_secure=True,
)
Describe your environment (please complete the following information):
Describe the bug Hello Haystack team,
I'm currently working with a Weaviate setup where the REST API and gRPC services are hosted on different domains. Specifically, I have:
REST API Host: https://weaviate.xxyy.com gRPC Host: https://weaviate.grpc.xxyy.com
In the original Weaviate Python client library, it's possible to specify different hosts for the REST and gRPC connections using the ConnectionParams class:
This configuration allows me to connect to the REST API and gRPC services using different hosts and ports.
Issue:
In Haystack's WeaviateDocumentStore, there doesn't seem to be an option to specify separate hosts for the REST API and gRPC connections. The url parameter sets both to the same host, and there's no exposed parameter to set a different gRPC host.
To Reproduce Here's the current initialization in Haystack:
Describe your environment (please complete the following information):