Sign inSign up

intel/enterprise-rag-query-rewrite

Verified Publisher

By Intel Corporation

•Updated 24 days ago

Intel® AI for Enterprise RAG Query Rewrite Microservice for improving retrieval quality

Image
0

221

intel/enterprise-rag-query-rewrite repository overview

⁠Intel® AI for Enterprise RAG Query Rewrite Microservice

Part of the Intel® AI for Enterprise RAG ecosystem.

⁠🔍 Overview

The Intel® AI for Enterprise RAG Query Rewrite Microservice is designed to improve retrieval quality in RAG (Retrieval Augmented Generation) pipelines by rewriting user queries. It processes input queries and generates refined versions that are more effective for document retrieval, using a dedicated LLM to rewrite queries in a single call, contextualizing them with conversation history when available and optimizing them for search.

⁠Key Features
  • Contextualization: When chat history is available, queries are rewritten to be self-contained by resolving pronouns and references using conversation context (e.g., "How does it work?" → "How does Retrieval Augmented Generation work?")
  • Query Refinement: Optimizes queries for better retrieval by expanding acronyms (e.g., "RAG" → "Retrieval Augmented Generation"), fixing typos and abbreviations, while preserving proper nouns and technical terms
  • Single LLM Call: Efficient processing that handles both contextualization and refinement in one request
  • Pipeline Resilience: On timeout, the original query is passed through unchanged to ensure system reliability
⁠Support Matrix
Model serverStatus
vLLM✓

Default model: AMead10/Llama-3.2-3B-Instruct-AWQ (3B parameters, AWQ quantized)

This service integrates with other Intel® AI for Enterprise RAG components:

  • Chat History Service provides conversation context for query contextualization
  • vLLM Model Server performs the actual query rewriting using an LLM
  • Retriever Microservice uses the rewritten queries for improved document retrieval
  • Embedding Microservice benefits from better queries for more accurate semantic search

⁠License

Intel® AI for Enterprise RAG is licensed under the Apache License, Version 2.0.

Copyright © 2024–2026 Intel Corporation. All rights reserved.

Tag summary

Content type

Image

Digest

sha256:63b73d83b…

Size

106.7 MB

Last updated

24 days ago

docker pull intel/enterprise-rag-query-rewrite

This week's pulls

Pulls:

73

Last week