1 of 8

RAG from scratch: Query Translation

(Multi-Query)

Lance Martin

Software Engineer, LangChain

@RLanceMartin

2 of 8

Query Translation

3 of 8

Problem statement

4 of 8

General approaches to transform questions

5 of 8

Transform a question into multiple perspectives

6 of 8

Intuition: Improve search

7 of 8

Use this with parallelized retrieval

8 of 8

Code walk-through