|
17 | 17 | from typing import Any, Generator |
18 | 18 |
|
19 | 19 | import pytest |
20 | | -from langchain_community.embeddings import HuggingFaceEmbeddings |
| 20 | +from langchain_huggingface.embeddings import HuggingFaceEmbeddings |
21 | 21 | from neo4j import Driver |
22 | 22 | from neo4j_genai.embedder import Embedder |
23 | 23 | from neo4j_genai.retrievers.external.weaviate import WeaviateNeo4jRetriever |
@@ -67,7 +67,7 @@ def test_weaviate_neo4j_vector_input(driver: Driver, weaviate_client: Client) -> |
67 | 67 | assert isinstance(results.items[0], RetrieverResultItem) |
68 | 68 | pattern = ( |
69 | 69 | r"<Record node=<Node element_id='.+' " |
70 | | - "labels=frozenset\({'Question'}\) properties={'question': 'In 1953 Watson \& " |
| 70 | + r"labels=frozenset\({'Question'}\) properties={'question': 'In 1953 Watson \& " |
71 | 71 | "Crick built a model of the molecular structure of this, the gene-carrying " |
72 | 72 | "substance', 'id': 'question_c458c6f64d8d47429636bc5a94c97f51'}> " |
73 | 73 | r"score=0.6[0-9]+>" |
@@ -98,7 +98,7 @@ def test_weaviate_neo4j_text_input_local_embedder( |
98 | 98 | assert isinstance(results.items[0], RetrieverResultItem) |
99 | 99 | pattern = ( |
100 | 100 | r"<Record node=<Node element_id='.+' " |
101 | | - "labels=frozenset\({'Question'}\) properties={'question': 'In 1953 Watson \& " |
| 101 | + r"labels=frozenset\({'Question'}\) properties={'question': 'In 1953 Watson \& " |
102 | 102 | "Crick built a model of the molecular structure of this, the gene-carrying " |
103 | 103 | "substance', 'id': 'question_c458c6f64d8d47429636bc5a94c97f51'}> " |
104 | 104 | r"score=0.6[0-9]+>" |
@@ -126,7 +126,7 @@ def test_weaviate_neo4j_text_input_remote_embedder( |
126 | 126 | assert isinstance(results.items[0], RetrieverResultItem) |
127 | 127 | pattern = ( |
128 | 128 | r"<Record node=<Node element_id='.+' " |
129 | | - "labels=frozenset\({'Question'}\) properties={'question': 'In 1953 Watson \& " |
| 129 | + r"labels=frozenset\({'Question'}\) properties={'question': 'In 1953 Watson \& " |
130 | 130 | "Crick built a model of the molecular structure of this, the gene-carrying " |
131 | 131 | "substance', 'id': 'question_c458c6f64d8d47429636bc5a94c97f51'}> " |
132 | 132 | r"score=0.5[0-9]+>" |
|
0 commit comments