CryptoSpiel.com
No Result
View All Result
  • Home
  • Live Crypto Prices
  • Live ICO
  • Exchange
  • Crypto News
  • Bitcoin
  • Altcoins
  • Blockchain
  • Regulations
  • Trading
  • Scams
  • Home
  • Live Crypto Prices
  • Live ICO
  • Exchange
  • Crypto News
  • Bitcoin
  • Altcoins
  • Blockchain
  • Regulations
  • Trading
  • Scams
No Result
View All Result
CryptoSpiel.com
No Result
View All Result

Enhancing AI Search Precision: NVIDIA Boosts RAG Pipelines with Re-Ranking

July 30, 2024
in Blockchain
Reading Time: 4 mins read
A A
0
Nvidia Plans to add Innovation in the Metaverse with Software, Marketplace Deals
0
SHARES
6
VIEWS
ShareShareShareShareShare


Alvin Lang
Jul 30, 2024 18:19

NVIDIA introduces re-ranking to improve the precision and relevance of AI-driven enterprise search results, enhancing RAG pipelines and semantic search.





In the rapidly evolving landscape of AI-driven applications, re-ranking has emerged as a pivotal technique to enhance the precision and relevance of enterprise search results, according to the NVIDIA Technical Blog. By leveraging advanced machine learning algorithms, re-ranking refines initial search outputs to better align with user intent and context, significantly improving the effectiveness of semantic search.

Role of Re-Ranking in AI

Re-ranking plays a crucial role in optimizing retrieval-augmented generation (RAG) pipelines, ensuring that large language models (LLMs) operate with the most pertinent and high-quality information. This dual benefit of re-ranking—enhancing both semantic search and RAG pipelines—makes it an indispensable tool for enterprises aiming to deliver superior search experiences and maintain a competitive edge in the digital marketplace.

What is Re-Ranking?

Re-ranking is a sophisticated technique used to enhance the relevance of search results by utilizing the advanced language understanding capabilities of LLMs. Initially, a set of candidate documents or passages is retrieved using traditional information retrieval methods like BM25 or vector similarity search. These candidates are then fed into an LLM that analyzes the semantic relevance between the query and each document. The LLM assigns relevance scores, enabling the re-ordering of documents to prioritize the most pertinent ones.

This process significantly improves the quality of search results by going beyond mere keyword matching to understand the context and meaning of the query and documents. Re-ranking is typically used as a second stage after an initial fast retrieval step, ensuring that only the most relevant documents are presented to the user. It can also combine results from multiple data sources and integrate into a RAG pipeline to further ensure that context is ideally tuned for the specific query.

NVIDIA’s Implementation of Re-Ranking

In this post, the NVIDIA Technical Blog illustrates the use of the NVIDIA NeMo Retriever reranking NIM. This transformer encoder, a LoRA fine-tuned version of Mistral-7B, uses only the first 16 layers for higher throughput. The last embedding output by the decoder model is used as a pooling strategy, and a binary classification head is fine-tuned for the ranking task.

To access the NVIDIA NeMo Retriever collection of world-class information retrieval microservices, see the NVIDIA API Catalog.

Combining Results from Multiple Data Sources

In addition to enhancing accuracy for a single data source, re-ranking can be used to combine multiple data sources in a RAG pipeline. Consider a pipeline with data from a semantic store and a BM25 store. Each store is queried independently and returns results that the individual store considers to be highly relevant. Figuring out the overall relevance of the results is where re-ranking comes into play.

The following code example combines the previous semantic search results with BM25 results. The results in combined_docs are ordered by their relevance to the query by the reranking NIM.

all_docs = docs + bm25_docs

reranker.top_n = 5

combined_docs = reranker.compress_documents(query=query, documents=all_docs)

Connecting to a RAG Pipeline

In addition to using re-ranking independently, it can be added to a RAG pipeline to further enhance responses by ensuring that they use the most relevant chunks for augmenting the original query.

In this case, connect the compression_retriever object from the previous step to the RAG pipeline.

from langchain.chains import RetrievalQA
from langchain_nvidia_ai_endpoints import ChatNVIDIA

chain = RetrievalQA.from_chain_type(
    llm=ChatNVIDIA(temperature=0), retriever=compression_retriever
)
result = chain({"query": query})
print(result.get("result"))

The RAG pipeline now uses the correct top-ranked chunk and summarizes the main insights:

The A100 GPU is used for training the 7B model in the supervised 
fine-tuning/instruction tuning ablation study. The training is 
performed on 16 A100 GPU nodes, with each node having 8 GPUs. The 
training hours for each stage of the 7B model are: projector 
initialization: 4 hours; visual language pre-training: 30 hours; 
and visual instruction-tuning: 6 hours. The total training time 
corresponds to 5.1k GPU hours, with most of the computation being 
spent on the pre-training stage. The training time could potentially 
be reduced by at least 30% with proper optimization. The high image 
resolution of 336 ×336 used in the training corresponds to 576 
tokens/image.

Conclusion

RAG has emerged as a powerful approach, combining the strengths of LLMs and dense vector representations. By using dense vector representations, RAG models can scale efficiently, making them well-suited for large-scale enterprise applications, such as multilingual customer service chatbots and code generation agents.

As LLMs continue to evolve, RAG will play an increasingly important role in driving innovation and delivering high-quality, intelligent systems that can understand and generate human-like language.

When building a RAG pipeline, it’s crucial to correctly split the vector store documents into chunks by optimizing the chunk size for the specific content and selecting an LLM with a suitable context length. In some cases, complex chains of multiple LLMs may be required. To optimize RAG performance and measure success, use a collection of robust evaluators and metrics.

For more information about additional models and chains, see NVIDIA AI LangChain endpoints.

Image source: Shutterstock


Credit: Source link

RELATED POSTS

Runway’s AI Tools Now Integrated in Adobe Premiere, After Effects

OpenAI Funds $1M for AI Policy Projects Across Five Regions

Gilbert + Tobin Scales AI with OpenAI Tools, Streamlines Workflows

Buy JNews
ADVERTISEMENT
ShareTweetSendPinShare
Previous Post

Central Bank of Brazil Aims to Finalize Crypto Exchange Regulation by Early 2025

Next Post

SEC Plans to Amend Binance Complaint, Avoiding Ruling on Third-Party Crypto Asset Securities

Related Posts

NVIDIA Q2 FY27 Revenue Hits $96B, Boosts SMH ETF Outlook
Blockchain

Runway’s AI Tools Now Integrated in Adobe Premiere, After Effects

September 8, 2026
OpenAI: Paf Leverages 85 Custom GPTs to Boost Developer Productivity
Blockchain

OpenAI Funds $1M for AI Policy Projects Across Five Regions

September 8, 2026
Gilbert + Tobin Scales AI with OpenAI Tools, Streamlines Workflows
Blockchain

Gilbert + Tobin Scales AI with OpenAI Tools, Streamlines Workflows

September 8, 2026
Next Post
SEC Plans to Amend Binance Complaint, Avoiding Ruling on Third-Party Crypto Asset Securities

SEC Plans to Amend Binance Complaint, Avoiding Ruling on Third-Party Crypto Asset Securities

Expert Insights: Best Memecoins to Buy Now for Potential 100X Returns During the Bull Market

Expert Insights: Best Memecoins to Buy Now for Potential 100X Returns During the Bull Market

Recommended Stories

Solana Gum Protocol Shuts Down

Stablecoins Reshape Remittances: Solana (SOL) Report Highlights New Trends

September 8, 2026
Builder receipts versus ETH burn

Builder receipts versus ETH burn

September 7, 2026
Binance Agent OS Hackathon Opens with $60K Prize Pool

Binance Agent OS Hackathon Opens with $60K Prize Pool

September 4, 2026

Popular Stories

  • Winklevoss Twins Continue Crypto Donation Spree With Another $1,000,000 in Bitcoin (BTC)

    Trader Says DeFi Altcoin Aave Witnessing Clear Trend Switch, Updates Forecast on Two Low-Cap Coins

    0 shares
    Share 0 Tweet 0
  • xAI Unveils Grok Bot for Enterprises with Free Trial Offer

    0 shares
    Share 0 Tweet 0
  • Banco Do Brasil Makes Latam’s First Digital Structured Note Trade

    0 shares
    Share 0 Tweet 0
  • GD Culture to Acquire Pallas Capital Assets, Adding 7,500 Bitcoin to Treasury

    0 shares
    Share 0 Tweet 0
  • Year-End Bitcoin Price Bets Get Wild as 11 AI Models Target up to $105K

    0 shares
    Share 0 Tweet 0
CryptoSpiel.com

This is an online news portal that aims to provide the latest crypto news, blockchain, regulations and much more stuff like that around the world. Feel free to get in touch with us!

What’s New Here!

  • Nexus ID Breach Exposes a Blueprint for Fraud, Experts Warn
  • Bitcoin Gains Ground in MENA Region as Crypto Volume Triples to $350B
  • Bitcoin Calms Below $80K as Fed Hike Odds Climb: Bitfinex Alpha

Subscribe Now

Loading
  • Live Crypto Prices
  • Contact Us
  • Privacy Policy
  • Terms of Use
  • DMCA

© 2021 - cryptospiel.com - All rights reserved!

No Result
View All Result
  • Home
  • Live Crypto Prices
  • Live ICO
  • Exchange
  • Crypto News
  • Bitcoin
  • Altcoins
  • Blockchain
  • Regulations
  • Trading
  • Scams

© 2021 - cryptospiel.com - All rights reserved!

Please enter CoinGecko Free Api Key to get this plugin works.