Refactor Weaviate config to include cluster URL in memory adapter

This commit is contained in:
Zain Hasan 2024-09-23 21:13:24 -04:00
parent 2fc9bd95a6
commit ba8044d243
3 changed files with 11 additions and 8 deletions

View file

@ -11,8 +11,8 @@ class WeaviateRequestProviderData(BaseModel):
# if there _is_ provider data, it must specify the API KEY
# if you want it to be optional, use Optional[str]
weaviate_api_key: str
weaviate_cluster_url: str
@json_schema_type
class WeaviateConfig(BaseModel):
url: str = Field(default="http://localhost:8080")
collection: str = Field(default="MemoryBank")