File tree Expand file tree Collapse file tree 6 files changed +47
-8
lines changed
src/neo4j_genai/embeddings Expand file tree Collapse file tree 6 files changed +47
-8
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ The `OpenAIEmbedder` was illustrated previously. Here is how to use the `Sentenc
266
266
267
267
.. code :: python
268
268
269
- from neo4j_genai.embeddings import SentenceTransformerEmbeddings
269
+ from neo4j_genai.embeddings.sentence_transformers import SentenceTransformerEmbeddings
270
270
271
271
embedder = SentenceTransformerEmbeddings(model = " all-MiniLM-L6-v2" ) # Note: this is the default model
272
272
Original file line number Diff line number Diff line change 19
19
URI = "neo4j://localhost:7687"
20
20
AUTH = ("neo4j" , "password" )
21
21
DATABASE = "neo4j"
22
- INDEX = "vector-index-name "
22
+ INDEX = "moviePlotsEmbedding "
23
23
24
24
25
25
# setup logger config
Original file line number Diff line number Diff line change 1
- from .sentence_transformers import SentenceTransformerEmbeddings
2
-
3
- __all__ = [
4
- "SentenceTransformerEmbeddings" ,
5
- ]
1
+ # Copyright (c) "Neo4j"
2
+ # Neo4j Sweden AB [https://neo4j.com]
3
+ # #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ # #
8
+ # https://www.apache.org/licenses/LICENSE-2.0
9
+ # #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
Original file line number Diff line number Diff line change
1
+ # Copyright (c) "Neo4j"
2
+ # Neo4j Sweden AB [https://neo4j.com]
3
+ # #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ # #
8
+ # https://www.apache.org/licenses/LICENSE-2.0
9
+ # #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
1
16
from __future__ import annotations
2
17
3
18
from typing import Any
Original file line number Diff line number Diff line change
1
+ # Copyright (c) "Neo4j"
2
+ # Neo4j Sweden AB [https://neo4j.com]
3
+ # #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ # #
8
+ # https://www.apache.org/licenses/LICENSE-2.0
9
+ # #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
1
16
from typing import Any
2
17
3
18
import numpy as np
Original file line number Diff line number Diff line change 3
3
import numpy as np
4
4
import pytest
5
5
from neo4j_genai .embedder import Embedder
6
- from neo4j_genai .embeddings import SentenceTransformerEmbeddings
6
+ from neo4j_genai .embeddings . sentence_transformers import SentenceTransformerEmbeddings
7
7
8
8
9
9
@patch ("sentence_transformers.SentenceTransformer" )
You can’t perform that action at this time.
0 commit comments