Skip to content

Does langchain Documents work in BM25S? #17

Answered by xhluca
pradhandebasish2046 asked this question in Q&A
Discussion options

You must be logged in to vote

bm25s does not provide support for langchain objects, as it is not a necessary dependency.

I believe it is common to see langchain add internal support to a specific library (e.g. openai, rank-bm25, huggingface, see this for example). Perhaps it would make sense to open a PR on the langchain repo: https://github.com/langchain-ai/langchain

Otherwise, it'd make sense to convert the langchain document object to text, I think it should be documented in the langchain docs.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by xhluca
Comment options

You must be logged in to vote
1 reply
@xhluca
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
Converted from issue

This discussion was converted from issue #16 on July 04, 2024 18:07.