Skip to content

Can use BM25s with postgres? #14

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

You must be logged in to vote

Although bm25s does not provide integrations with SQL, it should be fairly straightforward to pull the data you are interested in via a Python SQL client (e.g. sqlalchemy or psycopg2) and convert it into a list of string, which you can then pass to bm25s.

As I have not used SQL in a while, I am not confident I can provide an example, but if you wish to contribute an example and add it to examples/, I'm happy to review your PR!

Replies: 3 comments

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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 #7 on June 27, 2024 15:48.