Home / Companies / Vespa / Blog / June 2021

June 2021 Summaries

2 posts from Vespa

Filter
Month: Year:
Post Summaries Back to Blog
In a detailed exploration of transformer models for search and document ranking, this blog post series discusses utilizing Vespa.ai to implement a multiphase retrieval and ranking pipeline evaluated on the MS Marco Passage ranking dataset. The series demonstrates how smaller transformer models with only 22 million parameters can achieve near state-of-the-art ranking results, outperforming larger models with billions of parameters. The final post introduces a cross-encoder model, which is integrated as the last ranking stage in the pipeline, utilizing an all-to-all interaction between query and passage, and fine-tuned for binary classification on the MS Marco passage dataset. The cross-encoder model, based on a 6-layer MiniLM model, has been optimized for performance using a quantized int8 representation to accelerate inference. The post also details the configuration and deployment of this model in Vespa, including integration with ONNX format and benchmarking of its performance in terms of latency and throughput against other retrieval methods. Additionally, the blog discusses the trade-offs between accuracy and performance, illustrating how the cross-encoder model significantly increases computational cost but substantially improves ranking accuracy, making it a viable option for production environments where accuracy is critical.
Jun 22, 2021 2,457 words in the original blog post.
Thiago Martins, a Vespa Data Scientist, provides a tutorial on using the pyvespa API to conduct search engine experiments in Python, building on a basic text search application established in a previous tutorial. The focus is on comparing two query models using different matching operators, OR and WeakAnd, to manage document retrieval and ranking efficiently. By feeding additional data and employing evaluation metrics such as MatchRatio, Recall, and Normalized Discounted Cumulative Gain (NDCG), the tutorial demonstrates that the WeakAnd operator can significantly reduce the number of documents matched without compromising recall and precision. The tutorial also explores optimizing the WeakAnd operator's hits parameter, revealing that a hits value greater than three maintains recall while further reducing the average number of matched documents. Overall, the tutorial aims to enable Vespa users to run search engine experiments efficiently from Python while offering insights into optimizing search query models.
Jun 05, 2021 1,504 words in the original blog post.