Added embedding_func argument in Neo4JStorage class's __init__ method in neo4j implementation
This commit is contained in:
parent
f3fe5d3b64
commit
8d5af931d7
1 changed files with 6 additions and 2 deletions
|
|
@ -27,8 +27,12 @@ class Neo4JStorage(BaseGraphStorage):
|
||||||
def load_nx_graph(file_name):
|
def load_nx_graph(file_name):
|
||||||
print("no preloading of graph with neo4j in production")
|
print("no preloading of graph with neo4j in production")
|
||||||
|
|
||||||
def __init__(self, namespace, global_config):
|
def __init__(self, namespace, global_config, embedding_func):
|
||||||
super().__init__(namespace=namespace, global_config=global_config)
|
super().__init__(
|
||||||
|
namespace=namespace,
|
||||||
|
global_config=global_config,
|
||||||
|
embedding_func=embedding_func,
|
||||||
|
)
|
||||||
self._driver = None
|
self._driver = None
|
||||||
self._driver_lock = asyncio.Lock()
|
self._driver_lock = asyncio.Lock()
|
||||||
URI = os.environ["NEO4J_URI"]
|
URI = os.environ["NEO4J_URI"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue