Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Open
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
6 changes: 3 additions & 3 deletions dialdoc/models/rag/retrieval_rag_dialdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,11 @@ def nonlinear(a: List[int]):
ids_batched = []
vectors_batched = []
scores_batched = []
for comb_h_s, curr_h_s, hist_h_s, dom_batch in zip(
for comb_h_s, curr_h_s, hist_h_s in zip(
combined_hidden_states_batched,
current_hidden_states_batched,
history_hidden_states_batched,
domain_batched,
# domain_batched,
):
start_time = time.time()
if self.config.scoring_func in ["linear", "linear2", "linear3", "nonlinear"]:
Expand Down Expand Up @@ -619,4 +619,4 @@ def __call__(
"doc_scores": doc_scores,
},
tensor_type=return_tensors,
)
)