File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
examples/customize/retrievers/external/qdrant Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 18
18
19
19
import hashlib
20
20
import json
21
- import os
22
21
from typing import Any , Literal
23
22
24
23
import neo4j
25
24
from neo4j import GraphDatabase
26
25
from neo4j_graphrag .indexes import create_vector_index , drop_index_if_exists
27
- from qdrant_client import QdrantClient , models
26
+
27
+ try :
28
+ from qdrant_client import QdrantClient , models
29
+ except ImportError as e :
30
+ missing_module = str (e ).split ("'" )[1 ]
31
+ if missing_module == "qdrant_client" :
32
+ raise ImportError (
33
+ "The 'qdrant-client' package is missing. Please install it by running "
34
+ "`poetry install --extras \" qdrant\" ` or `pip install qdrant-client`, or follow the instructions "
35
+ "in the Qdrant examples section of the README at https://github.com/neo4j/neo4j-graphrag-python/"
36
+ ) from e
37
+ else :
38
+ raise
28
39
29
40
# biology
30
41
EMBEDDING_BIOLOGY = [
You can’t perform that action at this time.
0 commit comments