Skip to content

Keep the document ID when reranking#131

Open
Paul A. (Wecoreator) wants to merge 1 commit intolangchain-ai:mainfrom
Wecoreator:patch-1
Open

Keep the document ID when reranking#131
Paul A. (Wecoreator) wants to merge 1 commit intolangchain-ai:mainfrom
Wecoreator:patch-1

Conversation

@Wecoreator
Copy link

LangChain Documents now have the Optional Field id for the BaseMedia class, which the Document class inherits.

With this change, the id is no longer lost when reranking.

LangChain Documents now have the Optional Field id for the BaseMedia class, which the Document class inherits. 
With this change, the id is no longer lost when reranking.

Signed-off-by: Paul A. <73607727+Wecoreator@users.noreply.github.com>
@Wecoreator
Copy link
Author

Any update on this pull request? :)

@Anirudh31415926535
Copy link
Collaborator

Hi Paul A. (@Wecoreator) Thanks so much for the change! Could you please add a test case to track this so that we can ensure it doesn't get lost later on? :)

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