Skip to content

Commit

Permalink
Add warning in get_search_query
Browse files Browse the repository at this point in the history
  • Loading branch information
willtai committed Oct 28, 2024
1 parent f74aaab commit 8971ac6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/neo4j_graphrag/neo4j_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# limitations under the License.
from __future__ import annotations

import warnings
from typing import Any, Optional

from neo4j_graphrag.filters import get_metadata_filter
Expand Down Expand Up @@ -201,6 +202,11 @@ def get_search_query(
tuple[str, dict[str, Any]]: query and parameters
"""
warnings.warn(
"The default returned 'id' field in the search results will be renamed to 'node_id' in a future version.",
DeprecationWarning,
stacklevel=2,
)
if search_type == SearchType.HYBRID:
if filters:
raise Exception("Filters are not supported with Hybrid Search")
Expand Down

0 comments on commit 8971ac6

Please sign in to comment.