Skip to content

Conversation

@benym
Copy link
Contributor

@benym benym commented Oct 21, 2025

Describe what this PR does / why we need it

Introduce the transformation process of Hypothetical Document Embeddings(HyDE) into the existing deepresearch hybrid rag processing process

HyDE paper is https://arxiv.org/abs/2212.10496

As a processing method in rag, it has been integrated in langchain

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

@benym
Copy link
Contributor Author

benym commented Oct 21, 2025

ptal,thx @GTyingzi

@benym
Copy link
Contributor Author

benym commented Oct 28, 2025

Hello, do you have time to review this pr and #17 @VLSMB

@VLSMB
Copy link
Member

VLSMB commented Oct 28, 2025

Hello, this suggestion of yours feels excellent. Could you share a test screenshot to demonstrate the effect?

@benym
Copy link
Contributor Author

benym commented Oct 29, 2025

Hello, this suggestion of yours feels excellent. Could you share a test screenshot to demonstrate the effect?

ok, when using HyDE, the model will generate a hypothetical answer based on the user's question, as follows

123

This will then be provided as a query for the subsequent processes, which can effectively increase the recall rate

The following picture is from the original paper

Experiments on multiple datasets show that the Normalized Discounted Cumulative Gain(NDCG) and Recall metrics have been

significantly improved, more experiments details can be seen in the paper
image

Copy link
Member

@VLSMB VLSMB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx for your contribution!

@VLSMB VLSMB merged commit 6bc6620 into spring-ai-alibaba:main Oct 30, 2025
@benym benym deleted the feat_hyde_rag branch October 30, 2025 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants