(self)
| 14 | |
| 15 | class KnowledgeBase: |
| 16 | def __init__(self): |
| 17 | config = Config() |
| 18 | sqlite_path = config.get_sqlite_db() |
| 19 | self.engine = create_engine(f"sqlite:///{sqlite_path}") |
| 20 | SQLModel.metadata.create_all(self.engine) |
| 21 | |
| 22 | def add_knowledge(self, tag: str, contents: str): |
| 23 | knowledge = Knowledge(tag=tag, contents=contents) |
nothing calls this directly
no test coverage detected