graphiti-core 0.11.1__tar.gz → 0.11.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of graphiti-core might be problematic. Click here for more details.

Files changed (66) hide show
  1. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/PKG-INFO +1 -1
  2. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/search_utils.py +17 -14
  3. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/node_operations.py +3 -2
  4. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/pyproject.toml +1 -1
  5. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/LICENSE +0 -0
  6. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/README.md +0 -0
  7. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/__init__.py +0 -0
  8. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/cross_encoder/__init__.py +0 -0
  9. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/cross_encoder/bge_reranker_client.py +0 -0
  10. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/cross_encoder/client.py +0 -0
  11. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/cross_encoder/openai_reranker_client.py +0 -0
  12. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/edges.py +0 -0
  13. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/embedder/__init__.py +0 -0
  14. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/embedder/client.py +0 -0
  15. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/embedder/gemini.py +0 -0
  16. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/embedder/openai.py +0 -0
  17. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/embedder/voyage.py +0 -0
  18. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/errors.py +0 -0
  19. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/graphiti.py +0 -0
  20. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/graphiti_types.py +0 -0
  21. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/helpers.py +0 -0
  22. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/__init__.py +0 -0
  23. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/anthropic_client.py +0 -0
  24. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/client.py +0 -0
  25. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/config.py +0 -0
  26. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/errors.py +0 -0
  27. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/gemini_client.py +0 -0
  28. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/groq_client.py +0 -0
  29. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/openai_client.py +0 -0
  30. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/openai_generic_client.py +0 -0
  31. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/utils.py +0 -0
  32. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/models/__init__.py +0 -0
  33. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/models/edges/__init__.py +0 -0
  34. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/models/edges/edge_db_queries.py +0 -0
  35. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/models/nodes/__init__.py +0 -0
  36. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/models/nodes/node_db_queries.py +0 -0
  37. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/nodes.py +0 -0
  38. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/__init__.py +0 -0
  39. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/dedupe_edges.py +0 -0
  40. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/dedupe_nodes.py +0 -0
  41. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/eval.py +0 -0
  42. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/extract_edge_dates.py +0 -0
  43. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/extract_edges.py +0 -0
  44. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/extract_nodes.py +0 -0
  45. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/invalidate_edges.py +0 -0
  46. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/lib.py +0 -0
  47. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/models.py +0 -0
  48. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/prompt_helpers.py +0 -0
  49. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/summarize_nodes.py +0 -0
  50. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/py.typed +0 -0
  51. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/__init__.py +0 -0
  52. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/search.py +0 -0
  53. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/search_config.py +0 -0
  54. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/search_config_recipes.py +0 -0
  55. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/search_filters.py +0 -0
  56. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/search_helpers.py +0 -0
  57. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/__init__.py +0 -0
  58. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/bulk_utils.py +0 -0
  59. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/datetime_utils.py +0 -0
  60. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/__init__.py +0 -0
  61. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/community_operations.py +0 -0
  62. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/edge_operations.py +0 -0
  63. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/graph_data_operations.py +0 -0
  64. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/temporal_operations.py +0 -0
  65. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/utils.py +0 -0
  66. {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/ontology_utils/entity_types_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: graphiti-core
3
- Version: 0.11.1
3
+ Version: 0.11.3
4
4
  Summary: A temporal graph building library
5
5
  License: Apache-2.0
6
6
  Author: Paul Paliychuk
@@ -341,10 +341,10 @@ async def node_fulltext_search(
341
341
 
342
342
  query = (
343
343
  """
344
- CALL db.index.fulltext.queryNodes("node_name_and_summary", $query, {limit: $limit})
345
- YIELD node AS n, score
346
- WHERE n:Entity
347
- """
344
+ CALL db.index.fulltext.queryNodes("node_name_and_summary", $query, {limit: $limit})
345
+ YIELD node AS n, score
346
+ WHERE n:Entity
347
+ """
348
348
  + filter_query
349
349
  + ENTITY_NODE_RETURN
350
350
  + """
@@ -676,7 +676,7 @@ async def get_relevant_nodes(
676
676
  WHERE score > $min_score
677
677
  WITH node, collect(n)[..$limit] AS top_vector_nodes, collect(n.uuid) AS vector_node_uuids
678
678
 
679
- CALL db.index.fulltext.queryNodes("node_name_and_summary", 'group_id:"' + $group_id + '" AND ' + node.name, {limit: $limit})
679
+ CALL db.index.fulltext.queryNodes("node_name_and_summary", node.fulltext_query, {limit: $limit})
680
680
  YIELD node AS m
681
681
  WHERE m.group_id = $group_id
682
682
  WITH node, top_vector_nodes, vector_node_uuids, collect(m) AS fulltext_nodes
@@ -705,18 +705,21 @@ async def get_relevant_nodes(
705
705
  """
706
706
  )
707
707
 
708
+ query_nodes = [
709
+ {
710
+ 'uuid': node.uuid,
711
+ 'name': node.name,
712
+ 'name_embedding': node.name_embedding,
713
+ 'fulltext_query': fulltext_query(node.name, [node.group_id]),
714
+ }
715
+ for node in nodes
716
+ ]
717
+
708
718
  results, _, _ = await driver.execute_query(
709
719
  query,
710
720
  query_params,
711
- nodes=[
712
- {
713
- 'uuid': node.uuid,
714
- 'name': lucene_sanitize(node.name),
715
- 'name_embedding': node.name_embedding,
716
- }
717
- for node in nodes
718
- ],
719
- group_id=lucene_sanitize(group_id),
721
+ nodes=query_nodes,
722
+ group_id=group_id,
720
723
  limit=limit,
721
724
  min_score=min_score,
722
725
  database_=DEFAULT_DATABASE,
@@ -140,11 +140,12 @@ async def extract_nodes(
140
140
  for entity in missing_entities:
141
141
  custom_prompt += f'\n{entity},'
142
142
 
143
+ filtered_extracted_entities = [entity for entity in extracted_entities if entity.name.strip()]
143
144
  end = time()
144
- logger.debug(f'Extracted new nodes: {extracted_entities} in {(end - start) * 1000} ms')
145
+ logger.debug(f'Extracted new nodes: {filtered_extracted_entities} in {(end - start) * 1000} ms')
145
146
  # Convert the extracted data into EntityNode objects
146
147
  extracted_nodes = []
147
- for extracted_entity in extracted_entities:
148
+ for extracted_entity in filtered_extracted_entities:
148
149
  entity_type_name = entity_types_context[extracted_entity.entity_type_id].get(
149
150
  'entity_type_name'
150
151
  )
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "graphiti-core"
3
3
  description = "A temporal graph building library"
4
- version = "0.11.1"
4
+ version = "0.11.3"
5
5
  authors = [
6
6
  { "name" = "Paul Paliychuk", "email" = "paul@getzep.com" },
7
7
  { "name" = "Preston Rasmussen", "email" = "preston@getzep.com" },
File without changes
File without changes