Skip to content

Commit

Permalink
fix: update return type of context_records
Browse files Browse the repository at this point in the history
  • Loading branch information
hide212131 committed Dec 30, 2024
1 parent e5b58a8 commit 54f54ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/ktem/ktem/index/file/graph/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@ def _to_document(self, header: str, context_text: str) -> RetrievedDocument:
)

def format_context_records(self, context_records) -> list[RetrievedDocument]:
entities = context_records.get("entities", [])
relationships = context_records.get("relationships", [])
reports = context_records.get("reports", [])
sources = context_records.get("sources", [])
entities = context_records.get("entities", pd.DataFrame())
relationships = context_records.get("relationships", pd.DataFrame())
reports = context_records.get("reports", pd.DataFrame())
sources = context_records.get("sources", pd.DataFrame())

docs = []

Expand Down

0 comments on commit 54f54ce

Please sign in to comment.