Rag System, Large Language Models, Document Management.
sentences are compared with the next pair. The choice of n affects the context length considered in the comparison, balancing the need to capture detailed transitions with computational efficiency. Computing Cosine Similarity: For each position in the document, the algorithm extracts n sentences