Skip to content

Commit 09fa974

Browse files
committed
fix: chat
1 parent 46e6b69 commit 09fa974

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nx_arangodb/classes/graph.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,11 @@ def chat(
621621
if llm is None:
622622
llm = ChatOpenAI(temperature=0, model_name="gpt-4")
623623

624+
graph = ArangoGraph(self.db, graph_name=self.name)
625+
624626
chain = ArangoGraphQAChain.from_llm(
625627
llm=llm,
626-
graph=ArangoGraph(self.db),
628+
graph=graph,
627629
verbose=verbose,
628630
)
629631

0 commit comments

Comments
 (0)