graphiti-core 0.4.0__py3-none-any.whl → 0.4.1__py3-none-any.whl

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.

@@ -143,7 +143,7 @@ async def edge_search(
143
143
  search_results: list[list[EntityEdge]] = list(
144
144
  await asyncio.gather(
145
145
  *[
146
- edge_fulltext_search(driver, query, None, None, group_ids, 2 * limit),
146
+ edge_fulltext_search(driver, query, group_ids, 2 * limit),
147
147
  edge_similarity_search(
148
148
  driver, query_vector, None, None, group_ids, 2 * limit, config.sim_min_score
149
149
  ),
@@ -135,8 +135,6 @@ async def get_communities_by_nodes(
135
135
  async def edge_fulltext_search(
136
136
  driver: AsyncDriver,
137
137
  query: str,
138
- source_node_uuid: str | None,
139
- target_node_uuid: str | None,
140
138
  group_ids: list[str] | None = None,
141
139
  limit=RELEVANT_SCHEMA_LIMIT,
142
140
  ) -> list[EntityEdge]:
@@ -147,10 +145,8 @@ async def edge_fulltext_search(
147
145
 
148
146
  cypher_query = Query("""
149
147
  CALL db.index.fulltext.queryRelationships("edge_name_and_fact", $query, {limit: $limit})
150
- YIELD relationship AS rel, score
151
- MATCH (n:Entity)-[r {uuid: rel.uuid}]->(m:Entity)
152
- WHERE ($source_uuid IS NULL OR n.uuid IN [$source_uuid, $target_uuid])
153
- AND ($target_uuid IS NULL OR m.uuid IN [$source_uuid, $target_uuid])
148
+ YIELD relationship AS r, score
149
+ WITH r, score, startNode(r) AS n, endNode(r) AS m
154
150
  RETURN
155
151
  r.uuid AS uuid,
156
152
  r.group_id AS group_id,
@@ -170,8 +166,6 @@ async def edge_fulltext_search(
170
166
  records, _, _ = await driver.execute_query(
171
167
  cypher_query,
172
168
  query=fuzzy_query,
173
- source_uuid=source_node_uuid,
174
- target_uuid=target_node_uuid,
175
169
  group_ids=group_ids,
176
170
  limit=limit,
177
171
  database_=DEFAULT_DATABASE,
@@ -600,13 +594,7 @@ async def get_relevant_edges(
600
594
  )
601
595
  for edge in edges
602
596
  if edge.fact_embedding is not None
603
- ],
604
- *[
605
- edge_fulltext_search(
606
- driver, edge.fact, source_node_uuid, target_node_uuid, [edge.group_id], limit
607
- )
608
- for edge in edges
609
- ],
597
+ ]
610
598
  )
611
599
 
612
600
  for result in results:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: graphiti-core
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: A temporal graph building library
5
5
  License: Apache-2.0
6
6
  Author: Paul Paliychuk
@@ -38,10 +38,10 @@ graphiti_core/prompts/models.py,sha256=cvx_Bv5RMFUD_5IUawYrbpOKLPHogai7_bm7YXrSz
38
38
  graphiti_core/prompts/summarize_nodes.py,sha256=lNpagCq6Pz71vipBonQZUxBZG6OY4bQbyGZ5UEgdL4s,3488
39
39
  graphiti_core/py.typed,sha256=vlmmzQOt7bmeQl9L3XJP4W6Ry0iiELepnOrinKz5KQg,79
40
40
  graphiti_core/search/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
- graphiti_core/search/search.py,sha256=qkiAZCYhKhTkzyGuSH9j_W2Kz60TGyhLM1hZNCaCeUs,11996
41
+ graphiti_core/search/search.py,sha256=5r7HpIR4cQvwH24YN_DJB6LVNN9hizviE0QXGM6swz8,11984
42
42
  graphiti_core/search/search_config.py,sha256=UZN8jFA4pBlw2O5N1cuhVRBdTwMLR9N3Oyo6sQ4MDVw,3117
43
43
  graphiti_core/search/search_config_recipes.py,sha256=yUqiLnn9vFg39M8eVwjVKfBCL_ptGrfDMQ47m_Blb0g,6885
44
- graphiti_core/search/search_utils.py,sha256=8Ro90L7fqtw5tsdusIhS_pdYcLX2JVIDiH5dD04G7ug,22968
44
+ graphiti_core/search/search_utils.py,sha256=C9qzdRMP2WFW7O0CivoGHYyEviaCZEGDu4HAAXonxzo,22459
45
45
  graphiti_core/utils/__init__.py,sha256=cJAcMnBZdHBQmWrZdU1PQ1YmaL75bhVUkyVpIPuOyns,260
46
46
  graphiti_core/utils/bulk_utils.py,sha256=AMi42deCXjIIgdpLEiD5SYCMZfX8XKoOsVYEwXVTX5A,14016
47
47
  graphiti_core/utils/maintenance/__init__.py,sha256=TRY3wWWu5kn3Oahk_KKhltrWnh0NACw0FskjqF6OtlA,314
@@ -51,7 +51,7 @@ graphiti_core/utils/maintenance/graph_data_operations.py,sha256=w66_SLlvPapuG91Y
51
51
  graphiti_core/utils/maintenance/node_operations.py,sha256=m0q-PPCI5LM0dZMkrcyUENw6WfDBMO61DQ7S6MuNQ8E,11624
52
52
  graphiti_core/utils/maintenance/temporal_operations.py,sha256=MvaRLWrBlDeYw8CQrKish1xbYcY5ovpfdqA2hSX7v5k,3367
53
53
  graphiti_core/utils/maintenance/utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
- graphiti_core-0.4.0.dist-info/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
55
- graphiti_core-0.4.0.dist-info/METADATA,sha256=URZ0gW5i_Q9aOe5M60tsxFsYbAwqoW7HJc8oVyrzuFk,10058
56
- graphiti_core-0.4.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
57
- graphiti_core-0.4.0.dist-info/RECORD,,
54
+ graphiti_core-0.4.1.dist-info/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
55
+ graphiti_core-0.4.1.dist-info/METADATA,sha256=ujFYwG2A62hiztEWo4aXP92Bc-QAgCFwmmn0BoAGquc,10058
56
+ graphiti_core-0.4.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
57
+ graphiti_core-0.4.1.dist-info/RECORD,,