File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ def _extract_relationships(
158158 if not raw_schema ["parsed" ]:
159159 try :
160160 argument_json = json .loads (
161- raw_schema ["raw" ].additional_kwargs ["tool_calls" ][ 0 ][ "function " ][
161+ raw_schema ["raw" ].additional_kwargs ["function_call " ][
162162 "arguments"
163163 ]
164164 )
@@ -323,10 +323,10 @@ def get_graph_from_Gemini(model_version,
323323 nodes = [Node (id = id , type = type ) for id ,type in unique_nodes ]
324324 graph_document [0 ].nodes = list (nodes )
325325
326- for node in graph_document [0 ].nodes :
327- node .id = node .id .title ().replace (' ' ,'_' )
326+ # for node in graph_document[0].nodes:
327+ # node.id = node.id.title().replace(' ','_')
328328 #replace all non alphanumeric characters and spaces with underscore
329- node .type = re .sub (r'[^\w]+' , '_' , node .type .capitalize ())
329+ # node.type = re.sub(r'[^\w]+', '_', node.type.capitalize())
330330 graph_document_list .append (graph_document [0 ])
331331
332332 graph .add_graph_documents (graph_document_list )
You can’t perform that action at this time.
0 commit comments