forked from phoenix-oss/llama-stack-mirror
add Weaviate memory adapter (#95)
This commit is contained in:
parent
27587f32bc
commit
f4f7618120
4 changed files with 227 additions and 0 deletions
18
llama_stack/providers/adapters/memory/weaviate/config.py
Normal file
18
llama_stack/providers/adapters/memory/weaviate/config.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
from llama_models.schema_utils import json_schema_type
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
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):
|
||||
collection: str = Field(default="MemoryBank")
|
Loading…
Add table
Add a link
Reference in a new issue