RAG Flashcards
1
Q
what is TF and IDF?
A
TF is term frequency it is the number of times a term occurs in a given document divided by total number of words in the document
IDF is inverse document frequency, think document frequency first so that’s the number of documents in which a term occurs divided by total number of documents
TF-IDF is the product of TF and inverse of IDF.
2
Q
what is BM25
A
Best Match 25 is a modification to TF IDF which let’s it work much better
3
Q
A