Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ysolanky committed Feb 5, 2025
1 parent e74730b commit e465da7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/agno/agno/vectordb/lancedb/lance_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ def delete(self) -> bool:
return False

def name_exists(self, name: str) -> bool:
if self.table is None:
return False
result = self.table.search().select(["payload"]).to_pandas()
return any(row['payload'].get('name') == name for _, row in result.iterrows())

return any(row["payload"].get("name") == name for _, row in result.iterrows())

0 comments on commit e465da7

Please sign in to comment.