Skip to content

Commit

Permalink
check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gaudyb committed Dec 27, 2024
1 parent 9119ef3 commit ec36d4e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def build_context(
# make a delimited table for the context; this imitates graphrag context building
table = ["id|text"] + [f"{s['id']}|{s['text']}" for s in sources]

columns = pd.Index(["id", "text"])

return ContextBuilderResult(
context_chunks="\n\n".join(table),
context_records={"sources": pd.DataFrame(sources, columns=["id", "text"])},
context_records={"sources": pd.DataFrame(sources, columns=columns)},
)

0 comments on commit ec36d4e

Please sign in to comment.