Skip to content

Commit

Permalink
Merge pull request #42 from Sefaria/edemirci-aai-patch-vh-fixstring
Browse files Browse the repository at this point in the history
fix(logging): resolve f-string syntax error in vh.py by updating nest…
  • Loading branch information
Paul-Yu-Chun-Chang authored Sep 27, 2024
2 parents ba9570b + 8f5e0be commit 9c2b3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VirtualHavruta/vh.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def retrieve_nodes_matching_linker_results(self, linker_results: list[dict], msg
url_to_node[url] = node
else:
url_to_node[url].metadata["source"] += " | " + node.metadata["source"]
self.logger.info(f"MsgID={msg_id}. [LINKER-GRAGH RETRIEVAL] Graph nodes retrieved using linker URLs: {['URL='+url+' SOURCE='+node.metadata["source"] for url, node in url_to_node.items()]}")
self.logger.info(f"MsgID={msg_id}. [LINKER-GRAGH RETRIEVAL] Graph nodes retrieved using linker URLs: {['URL='+url+' SOURCE='+node.metadata['source'] for url, node in url_to_node.items()]}")
return list(url_to_node.values())

def get_retrieval_results_knowledge_graph(self, url: str, direction: str, order: int, score_central_node: float, filter_mode_nodes: str|None = None, msg_id: str = '') -> list[tuple[Document, float]]:
Expand Down

0 comments on commit 9c2b3c1

Please sign in to comment.