We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e3bef commit 6586389Copy full SHA for 6586389
src/memos/graph_dbs/polardb.py
@@ -1160,13 +1160,11 @@ def get_nodes(
1160
properties = properties_json if properties_json else {}
1161
1162
# Parse embedding from JSONB if it exists
1163
- if embedding_json is not None:
+ if embedding_json is not None and kwargs.get("include_embedding"):
1164
try:
1165
# remove embedding
1166
- """
1167
embedding = json.loads(embedding_json) if isinstance(embedding_json, str) else embedding_json
1168
- # properties["embedding"] = embedding
1169
+ properties["embedding"] = embedding
1170
except (json.JSONDecodeError, TypeError):
1171
logger.warning(f"Failed to parse embedding for node {node_id}")
1172
nodes.append(
0 commit comments