| | @@ -178,10 +178,16 @@ |
| 178 | 178 | |
| 179 | 179 | class FalkorDBStore(GraphStore): |
| 180 | 180 | """FalkorDB Lite-backed graph store. Requires falkordblite package.""" |
| 181 | 181 | |
| 182 | 182 | def __init__(self, db_path: Union[str, Path]) -> None: |
| 183 | + # Patch redis 7.x compat: UnixDomainSocketConnection missing 'port' |
| 184 | + import redis.connection |
| 185 | + |
| 186 | + if not hasattr(redis.connection.UnixDomainSocketConnection, "port"): |
| 187 | + redis.connection.UnixDomainSocketConnection.port = 0 |
| 188 | + |
| 183 | 189 | from redislite import FalkorDB |
| 184 | 190 | |
| 185 | 191 | self._db_path = str(db_path) |
| 186 | 192 | self._db = FalkorDB(self._db_path) |
| 187 | 193 | self._graph = self._db.select_graph("knowledge") |
| 188 | 194 | |