LangChain WeaviateVectorStore fails with async client due to unawaited coroutine
warningconfigurationUpdated Mar 31, 2025
How to detect:
When initializing LangChain's WeaviateVectorStore with WeaviateAsyncClient, AttributeError occurs: 'coroutine' object has no attribute 'multi_tenancy_config'. Runtime warning shows coroutine '_ConfigCollectionAsync.get' was never awaited, indicating improper async/await handling in the integration layer.
Recommended action:
Bypass LangChain's WeaviateVectorStore wrapper. Get collection directly via client.collections.get(collection_name), prepare objects as dicts with required fields (content, source, page, document_type), then call await collection.data.insert_many(objects_to_insert). Check response.all_responses for successful inserts and response.errors for failures.