Skip to content

Commit

Permalink
small update to article
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdhayanturner committed Oct 23, 2024
1 parent d6e4780 commit 683c74d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/articles/improve-raptor-with-rag.md
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,13 @@ normal_answer = generate_results(query, normal_context_text)

![Comparison for a Query](../assets/use_cases/improve-raptor-with-rag/raptor-6.png)

RAPTOR RAG performs better than vanilla RAG. RAPTOR retrieves specific details about NTT's financial growth for the specified quarter, and connects this growth to the broader acquisition strategy, pulling relevant context from our example [source document](https://www.nttdata.com/global/en/-/media/nttdataglobal/1_files/investors/financial-results/2021/fy2021_fs_3q.pdf). (Note: collapsed tree retrieval will work well in this kind of use case - a factual, keyword-based query requiring specific details - even if you have many source documents.) Whereas, our vanilla RAG, while correctly identifying the specific details, fails to elucidate either NTT's strategy or a relationship between their quarterly growth, the broader strategy, and the particular (Nexient) acquisition in question.
RAPTOR RAG performs better than vanilla RAG at handling retrieval on our hierarchically chunked and embedded source document. RAPTOR retrieves specific details about NTT's financial growth for the specified quarter, and connects this growth to the broader acquisition strategy, pulling relevant context from our example [source document](https://www.nttdata.com/global/en/-/media/nttdataglobal/1_files/investors/financial-results/2021/fy2021_fs_3q.pdf). (Note: collapsed tree retrieval will work well in this kind of use case - a factual, keyword-based query requiring specific details - whether you have multiple source chunks or even many source documents.) Whereas, our vanilla RAG, while correctly identifying the specific details, fails to elucidate either NTT's strategy or a relationship between their quarterly growth, broader strategy, and the particular (Nexient) acquisition in question.

## Your turn

Now it's your turn to try out RAPTOR RAG! Here's the Google [colab](https://colab.research.google.com/drive/1I3WI0U4sgb2nc1QTQm51kThZb2q4MXyr?usp=sharing).

To learn more about the intricacies of RAPTOR, check out the official [GitHub repository](https://github.com/parthsarthi03/raptor/tree/master). For an even deeper dive, we highly recommend the official [paper](https://arxiv.org/pdf/2401.18059)!
To learn more about the intricacies of RAPTOR, check out their official [GitHub repository](https://github.com/parthsarthi03/raptor/tree/master). For an even deeper dive, we highly recommend the official [paper](https://arxiv.org/pdf/2401.18059)!

## Contributors

Expand Down

0 comments on commit 683c74d

Please sign in to comment.