added support for weaviate embedded

This commit is contained in:
cs0lar
2023-04-12 08:21:41 +01:00
parent 96c5e929be
commit 453b428d33
5 changed files with 25 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ class WeaviateMemory(MemoryProviderSingleton):
def __init__(self, cfg):
auth_credentials = self._build_auth_credentials(cfg)
url = f'{cfg.weaviate_host}:{cfg.weaviate_port}'
url = f'{cfg.weaviate_protocol}://{cfg.weaviate_host}:{cfg.weaviate_port}'
if cfg.use_weaviate_embedded:
self.client = Client(embedded_options=EmbeddedOptions(