Skip to content
Discussion options

You must be logged in to vote

Hey @logancyang, this is something we've been looking into a bit. The tricky thing is that we don't want to store scores as metadata on the documents themselves since those can be resaved to a store later.

If you're ok with that happening, you could create your own custom retriever:

https://js.langchain.com/docs/modules/data_connection/retrievers/custom

Or you could just wrap the vectorstore directly in something like a RunnableLambda and return tuples.

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Comment options

You must be logged in to vote
2 replies
@logancyang
Comment options

@jacoblee93
Comment options

Answer selected by logancyang
Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants