Skip to content

Commit

Permalink
Merge branch 'latest-txt2kg' into rerank
Browse files Browse the repository at this point in the history
  • Loading branch information
puririshi98 authored Feb 5, 2025
2 parents cd34dcb + fb959cb commit ae06392
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions torch_geometric/loader/rag_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,11 @@ def __init__(
(Default: obj:`''`)
"""
fstore, gstore = data
assert len(raw_docs) == len(
embedded_docs), "Need raw and embedded docs to match"
self.raw_docs = raw_docs
self.k_for_docs = k_for_docs
if self.raw_docs:
assert len(raw_docs) == len(
embedded_docs), "Need raw and embedded docs to match"
self.embedded_docs = embedded_docs
self.feature_store = fstore
self.graph_store = gstore
Expand Down

0 comments on commit ae06392

Please sign in to comment.