Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional id_field to VertexRank #217

Merged
merged 7 commits into from
May 15, 2024
Merged

Conversation

shenghann
Copy link
Contributor

There are valid use cases to retain the id field in the original retrieved documents in the documents that are reranked by VertexRank. This is especially important for use cases where traceability of documents throughout the chain is important.

Current assigned id based on an enumerated incrementing index works for cases where ids do not need to be tracked but isn't universally applicable.

@gmogr
Copy link
Collaborator

gmogr commented May 14, 2024

/gcbrun

@lkuligin
Copy link
Collaborator

@shenghann linter is red

@lkuligin
Copy link
Collaborator

@shenghann you can run linter locally with make format and make lint commands
https://github.com/langchain-ai/langchain-google/blob/main/libs/community/Makefile

@lkuligin lkuligin merged commit ca0abb1 into langchain-ai:main May 15, 2024
15 checks passed
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.

None yet

3 participants