Skip to content

Commit d35978d

Browse files
Fix ontology builder defaults: resolve_entities=True, relation_threshold=0.6
Aligns builder defaults with SDK model, service registry, and backend. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent e390e61 commit d35978d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/latence/_pipeline/builder.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -195,22 +195,22 @@ def extraction(
195195

196196
def ontology(
197197
self,
198-
resolve_entities: bool = False,
198+
resolve_entities: bool = True,
199199
optimize_relations: bool = True,
200200
predict_missing_relations: bool = False,
201-
relation_threshold: float = 0.5,
201+
relation_threshold: float = 0.6,
202202
kg_output_format: str = "custom",
203203
**kwargs: Any,
204204
) -> "PipelineBuilder":
205205
"""Add Relation Extraction service for knowledge graph construction.
206206
207207
Args:
208-
resolve_entities: Merge duplicate entities
209-
optimize_relations: Filter redundant relations
210-
predict_missing_relations: Predict implicit relations
211-
relation_threshold: Confidence threshold for relations
212-
kg_output_format: Output format ("custom", "property_graph", "rdf")
213-
**kwargs: Additional configuration options
208+
resolve_entities: Merge duplicate entities using hybrid similarity + embeddings.
209+
optimize_relations: Refine relation labels for better semantic accuracy.
210+
predict_missing_relations: Predict implicit relations via heuristics + embeddings.
211+
relation_threshold: Confidence threshold for relations (0.0-1.0).
212+
kg_output_format: Output format ("custom", "property_graph", "rdf").
213+
**kwargs: Additional configuration options.
214214
215215
Returns:
216216
Self for method chaining

0 commit comments

Comments
 (0)