Skip to content

Commit

Permalink
updated link, added more TO-DOs
Browse files Browse the repository at this point in the history
  • Loading branch information
ohdearquant committed Nov 18, 2024
1 parent 44e11fb commit f707e06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autogen/structure_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


# string_similarity
# copied from https://github.com/lion-agi/lion-os/blob/main/lion/integrations/pydantic_/break_down_annotation.py
# copied from https://github.com/lion-agi/lion-os/blob/main/lion/libs/string_similarity.py
# copyright by HaiyangLi, APACHE LICENSE 2.0
def cosine_similarity(s1: str, s2: str) -> float:
"""Calculate the cosine similarity between two strings.
Expand Down Expand Up @@ -540,3 +540,5 @@ def fix_json_string(str_to_parse: str, /) -> str:

# TODO: add a recursive to dict into AG2
# check `recursive_to_dict` under https://github.com/lion-agi/lion-os/blob/main/lion/libs/parse.py

# TODO: add fuzzy matching key, fuzzy matching mapping, need to modify the implementation of to_dict from LION-OS

0 comments on commit f707e06

Please sign in to comment.