<!-- .github/pull_request_template.md --> ## Description feature: solve edge embedding duplicates in edge collection + retriever optimization ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. --------- Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
5 lines
167 B
Python
5 lines
167 B
Python
from uuid import NAMESPACE_OID, uuid5
|
|
|
|
|
|
def generate_edge_id(edge_id: str) -> str:
|
|
return uuid5(NAMESPACE_OID, edge_id.lower().replace(" ", "_").replace("'", ""))
|