Open lflage opened 2 months ago
Main function was too convoluted so I decide to run Contriever in another file.
There should be a function with inputs:
Returning:
Function must load Contriever, embed the query, calculate score, return top-k
https://github.com/lflage/HalluEval-RAG/blob/8aa2e02edab69ae488f2625d1e80a53ed9b72686/src/main.py#L28-L75
Question:
Discussion:
Main function was too convoluted so I decide to run Contriever in another file.
There should be a function with inputs:
Returning:
Function must load Contriever, embed the query, calculate score, return top-k
https://github.com/lflage/HalluEval-RAG/blob/8aa2e02edab69ae488f2625d1e80a53ed9b72686/src/main.py#L28-L75