diff --git a/llama-index-integrations/vector_stores/llama-index-vector-stores-neo4jvector/llama_index/vector_stores/neo4jvector/base.py b/llama-index-integrations/vector_stores/llama-index-vector-stores-neo4jvector/llama_index/vector_stores/neo4jvector/base.py index d7b5708f590ea053fc94664eaa4b95a4a7876eb5..9154902b2dd71878abc82d0c6735efe6d453f741 100644 --- a/llama-index-integrations/vector_stores/llama-index-vector-stores-neo4jvector/llama_index/vector_stores/neo4jvector/base.py +++ b/llama-index-integrations/vector_stores/llama-index-vector-stores-neo4jvector/llama_index/vector_stores/neo4jvector/base.py @@ -25,7 +25,7 @@ def sort_by_index_name( lst: List[Dict[str, Any]], index_name: str ) -> List[Dict[str, Any]]: """Sort first element to match the index_name if exists.""" - return sorted(lst, key=lambda x: x.get("index_name") != index_name) + return sorted(lst, key=lambda x: x.get("name") != index_name) def clean_params(params: List[BaseNode]) -> List[Dict[str, Any]]: