Skip to content

Commit

Permalink
Feature/add missing abstractions (#449)
Browse files Browse the repository at this point in the history
* fix

* fix
  • Loading branch information
emrgnt-cmplxty committed Jun 13, 2024
1 parent 5235957 commit efff384
Show file tree
Hide file tree
Showing 3 changed files with 441 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "r2r"
version = "0.2.17"
version = "0.2.18"
description = "SciPhi R2R"
authors = ["Owen Colegrove <owen@sciphi.ai>"]
license = "MIT"
Expand Down
4 changes: 1 addition & 3 deletions r2r/core/abstractions/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ def extract_entities(llm_payload: list[str]) -> dict[str, Entity]:
if colon_count == 1:
category, value = entry.split(":")
sub_category = None
elif colon_count == 2:
category, sub_category, value = entry.split(":")
elif colon_count > 2:
elif colon_count >= 2:
parts = entry.split(":", 2)
category, sub_category, value = (
parts[0],
Expand Down
Loading

0 comments on commit efff384

Please sign in to comment.