Skip to content

Tmp johannes graphbased retrieval #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cognition_objects/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def update(
message_id: str,
answer: Optional[str] = None,
facts: Optional[List[Dict[str, Any]]] = None,
relations: Optional[List[Dict[str, Any]]] = None,
selection_widget: Optional[List[Dict[str, Any]]] = None,
feedback_value: Optional[str] = None,
feedback_category: Optional[str] = None,
Expand All @@ -108,6 +109,8 @@ def update(
message.answer = answer
if facts is not None:
message.facts = facts
if relations is not None:
message.relations = relations
if selection_widget is not None:
message.selection_widget = selection_widget
if feedback_value is not None:
Expand Down
1 change: 1 addition & 0 deletions enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ class CognitionInterfaceType(Enum):
class EmitType(Enum):
ANSWER = "ANSWER"
RETRIEVAL_RESULTS = "RETRIEVAL_RESULTS"
RETRIEVAL_RELATIONS = "RETRIEVAL_RELATIONS"
FOLLOW_UPS = "FOLLOW_UPS"
SELECTION = "SELECTION"
QUERY_REPHRASING = "QUERY_REPHRASING"
Expand Down
1 change: 1 addition & 0 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,7 @@ class CognitionMessage(Base):
created_at = Column(DateTime, default=sql.func.now())
question = Column(String)
facts = Column(ARRAY(JSON))
relations = Column(ARRAY(JSON))
selection_widget = Column(ARRAY(JSON))
answer = Column(String)

Expand Down