Skip to content

Commit 30d492a

Browse files
committed
fix: dim_field when filter non-embedding nodes
1 parent c2f135f commit 30d492a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memos/graph_dbs/nebular.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ def search_by_embedding(
10081008
dim = len(vector)
10091009
vector_str = ",".join(f"{float(x)}" for x in vector)
10101010
gql_vector = f"VECTOR<{dim}, FLOAT>([{vector_str}])"
1011-
where_clauses = ["n.embedding_1024 IS NOT NULL"]
1011+
where_clauses = [f"n.{self.dim_field} IS NOT NULL"]
10121012
if scope:
10131013
where_clauses.append(f'n.memory_type = "{scope}"')
10141014
if status:

0 commit comments

Comments
 (0)