- Retrieve documents based on both the summary of the entire paper and summaries of individual paragraphs.
- Rank results by combining scores from multiple embeddings such as:
- 70% weight for entire paper similarity
- 30% weight for paragraph summary similarity
fn.semantic_similarity()
function for calculating semantic similarity on the paper_score
field as well as the paragraph_score
field:
- Calculate semantic similarity between the query and the full paper summary as well as the paragraph summary.
- Blend the two scores by giving 70% weight to the full paper and 30% weight to the paragraph summary.
- Retrieve the top 10 results ranked by the blended score.