1- from typing import Union
2-
31class VectorFilter (object ):
42 """
53 Represents a CALL db.index.vector.query* neo functions call within the OGM
@@ -16,7 +14,11 @@ class VectorFilter(object):
1614 """
1715
1816 def __init__ (
19- self , topk : int , vector_attribute_name : str , candidate_vector : list [float ], threshold : Union [float , None ] = None
17+ self ,
18+ topk : int ,
19+ vector_attribute_name : str ,
20+ candidate_vector : list [float ],
21+ threshold : float | None = None ,
2022 ):
2123 self .topk = topk
2224 self .vector_attribute_name = vector_attribute_name
@@ -25,9 +27,10 @@ def __init__(
2527 self .node_set_label = None
2628 self .vector = candidate_vector
2729
30+
2831class FulltextFilter (object ):
2932 """
30- Represents a CALL db.index.fulltext.query* neo functon call within the OGM.
33+ Represents a CALL db.index.fulltext.query* neo function call within the OGM.
3134 :param query_strng: The string you are finding the nearest
3235 :type query_string: str
3336 :param freetext_attribute_name: The property name for the free text indexed property.
@@ -39,7 +42,12 @@ class FulltextFilter(object):
3942
4043 """
4144
42- def __init__ (self , query_string : str , fulltext_attribute_name : str , topk : int , threshold : Union [float , None ] = None
45+ def __init__ (
46+ self ,
47+ query_string : str ,
48+ fulltext_attribute_name : str ,
49+ topk : int ,
50+ threshold : float | None = None ,
4351 ):
4452 self .topk = topk
4553 self .query_string = query_string
0 commit comments