Method
search
(self, query: str, limit: int = 5)
Source from the content-addressed store, hash-verified
| 344 | return 0 |
| 345 | |
| 346 | def search(self, query: str, limit: int = 5) -> List[Dict]: |
| 347 | if not self._available: |
| 348 | return [] |
| 349 | try: |
| 350 | query_embedding = self._model.embed(query) |
| 351 | if not query_embedding: |
| 352 | return [] |
| 353 | return self._store.search(query_embedding, limit) |
| 354 | except Exception: |
| 355 | return [] |
| 356 | |
| 357 | def remove_file(self, file_path: str) -> int: |
| 358 | if not self._available: |
Callers
nothing calls this directly
Tested by
no test coverage detected