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.
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/PKG-INFO +1 -1
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/search_utils.py +17 -14
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/node_operations.py +3 -2
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/pyproject.toml +1 -1
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/LICENSE +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/README.md +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/__init__.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/cross_encoder/__init__.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/cross_encoder/bge_reranker_client.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/cross_encoder/client.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/cross_encoder/openai_reranker_client.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/edges.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/embedder/__init__.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/embedder/client.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/embedder/gemini.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/embedder/openai.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/embedder/voyage.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/errors.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/graphiti.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/graphiti_types.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/helpers.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/__init__.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/anthropic_client.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/client.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/config.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/errors.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/gemini_client.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/groq_client.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/openai_client.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/openai_generic_client.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/utils.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/models/__init__.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/models/edges/__init__.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/models/edges/edge_db_queries.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/models/nodes/__init__.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/models/nodes/node_db_queries.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/nodes.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/__init__.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/dedupe_edges.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/dedupe_nodes.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/eval.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/extract_edge_dates.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/extract_edges.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/extract_nodes.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/invalidate_edges.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/lib.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/models.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/prompt_helpers.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/prompts/summarize_nodes.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/py.typed +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/__init__.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/search.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/search_config.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/search_config_recipes.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/search_filters.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/search/search_helpers.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/__init__.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/bulk_utils.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/datetime_utils.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/__init__.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/community_operations.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/edge_operations.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/graph_data_operations.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/temporal_operations.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/utils.py +0 -0
- {graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/ontology_utils/entity_types_utils.py +0 -0
|
@@ -341,10 +341,10 @@ async def node_fulltext_search(
|
|
|
341
341
|
|
|
342
342
|
query = (
|
|
343
343
|
"""
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
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",
|
|
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,
|
{graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/node_operations.py
RENAMED
|
@@ -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: {
|
|
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
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|
{graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/cross_encoder/bge_reranker_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/cross_encoder/openai_reranker_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/llm_client/openai_generic_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/edge_operations.py
RENAMED
|
File without changes
|
|
File without changes
|
{graphiti_core-0.11.1 → graphiti_core-0.11.3}/graphiti_core/utils/maintenance/temporal_operations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|