Logo
Explore Help
Register Sign In
yujunjun/graphiti
1
0
Fork 0
You've already forked graphiti
mirror of https://github.com/getzep/graphiti.git synced 2025-06-27 02:00:02 +00:00
Code Issues Packages Projects Releases Wiki Activity
graphiti/core/utils/utils.py

24 lines
533 B
Python
Raw Normal View History

Update Maintenance LLM Queries and Partial Schema Retrieval (#6) * search updates * add search_utils * updates * graph maintenance updates * revert extract_new_nodes * revert extract_new_edges * parallelize node searching * add edge fulltext search * search optimizations
2024-08-18 13:22:31 -04:00
import logging
format and linting (#18) * Makefile and format * fix podcast stuff * refactor: update import statement for transcript_parser in podcast_runner.py * format and linting * chore: Update import statements and remove unused code in maintenance module
2024-08-22 12:26:13 -07:00
from core.edges import EpisodicEdge
from core.nodes import EntityNode, EpisodicNode
Update Maintenance LLM Queries and Partial Schema Retrieval (#6) * search updates * add search_utils * updates * graph maintenance updates * revert extract_new_nodes * revert extract_new_edges * parallelize node searching * add edge fulltext search * search optimizations
2024-08-18 13:22:31 -04:00
logger = logging.getLogger(__name__)
def build_episodic_edges(
entity_nodes: list[EntityNode], episode: EpisodicNode
) -> list[EpisodicEdge]:
edges: list[EpisodicEdge] = []
for node in entity_nodes:
edges.append(
EpisodicEdge(
source_node_uuid=episode,
target_node_uuid=node,
created_at=episode.created_at,
)
)
return edges
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 1450ms Template: 165ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API