๐ฆVectorStore
from pydantic import BaseModel, ConfigDict, Field
from openagi.storage.base import BaseStorage
class NewStorage(BaseModel):
name: str = Field(title="<storage name>", description="<description>.")
def save_document(self):
"""Save documents to the with metadata."""
...
def update_document(self):
...
def delete_document(self):
...
def query_documents(self):
...
@classmethod
def from_kwargs(cls, **kwargs):
raise NotImplementedError("Subclasses must implement this method.")Last updated