graphiti-core 0.4.0__tar.gz → 0.4.1__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.4.0 → graphiti_core-0.4.1}/PKG-INFO +1 -1
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/search/search.py +1 -1
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/search/search_utils.py +3 -15
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/pyproject.toml +1 -1
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/LICENSE +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/README.md +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/__init__.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/cross_encoder/__init__.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/cross_encoder/bge_reranker_client.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/cross_encoder/client.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/cross_encoder/openai_reranker_client.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/edges.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/embedder/__init__.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/embedder/client.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/embedder/openai.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/embedder/voyage.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/errors.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/graphiti.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/helpers.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/llm_client/__init__.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/llm_client/anthropic_client.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/llm_client/client.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/llm_client/config.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/llm_client/errors.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/llm_client/groq_client.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/llm_client/openai_client.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/llm_client/utils.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/models/__init__.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/models/edges/__init__.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/models/edges/edge_db_queries.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/models/nodes/__init__.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/models/nodes/node_db_queries.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/nodes.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/prompts/__init__.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/prompts/dedupe_edges.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/prompts/dedupe_nodes.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/prompts/eval.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/prompts/extract_edge_dates.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/prompts/extract_edges.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/prompts/extract_nodes.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/prompts/invalidate_edges.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/prompts/lib.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/prompts/models.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/prompts/summarize_nodes.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/py.typed +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/search/__init__.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/search/search_config.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/search/search_config_recipes.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/__init__.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/bulk_utils.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/maintenance/__init__.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/maintenance/community_operations.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/maintenance/edge_operations.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/maintenance/graph_data_operations.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/maintenance/node_operations.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/maintenance/temporal_operations.py +0 -0
- {graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/maintenance/utils.py +0 -0
|
@@ -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,
|
|
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
|
|
151
|
-
|
|
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:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/cross_encoder/bge_reranker_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{graphiti_core-0.4.0 → graphiti_core-0.4.1}/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
|
|
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.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/maintenance/community_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/maintenance/edge_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/maintenance/graph_data_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/maintenance/node_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.4.0 → graphiti_core-0.4.1}/graphiti_core/utils/maintenance/temporal_operations.py
RENAMED
|
File without changes
|
|
File without changes
|