graphiti icon indicating copy to clipboard operation
graphiti copied to clipboard

Ignore standard entity types

Open n-sviridenko opened this issue 8 months ago • 2 comments

Resolving https://github.com/getzep/graphiti/issues/465


[!IMPORTANT] Add custom_entity_types_only parameter to filter out default entity types in episode processing.

  • Behavior:
    • Add custom_entity_types_only parameter to add_episode in graphiti.py and extract_nodes in node_operations.py to filter out default entity types.
    • When custom_entity_types_only is True, only custom entity types are processed, filtering out entities with entity_type_id 0.
  • Functions:
    • Update extract_nodes to include filtering logic for custom_entity_types_only.
    • Log the number of entities kept after filtering in extract_nodes.
  • Misc:
    • Update docstring for add_episode in graphiti.py to describe custom_entity_types_only parameter.

This description was created by Ellipsis for 6f4be967a2479caf53eba16e594ce0f50e93f21d. You can customize this summary. It will automatically update as commits are pushed.

n-sviridenko avatar May 10 '25 12:05 n-sviridenko


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

danielchalef avatar May 10 '25 12:05 danielchalef

I have read the CLA Document and I hereby sign the CLA

n-sviridenko avatar May 12 '25 08:05 n-sviridenko

@danielchalef any news on this?

nikita-supernomic avatar Jun 24 '25 11:06 nikita-supernomic

Thanks for the contribution. We're taking a different approach to accomplishing this. See: https://github.com/getzep/graphiti/pull/624

danielchalef avatar Jun 25 '25 00:06 danielchalef