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

Fetch score_function for semantic_search from model config if available #1649

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NimaBoscarino
Copy link
Contributor

For issue: #1643
This PR loads the score_function from the model config JSON file, only if the model is passed to the semantic_search function. I tested this by using a local model with an edited config_sentence_transformers.json file.

The other places where I think this could be relevant are:

  • InformationRetrievalEvaluator
  • SequentialEvaluator
  • util.paraphrase_mining

If you think this looks okay, I can make sure this is tested in test_util, and then I can also implement it for those other ones that I listed above!

for semantic search utility function.
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

1 participant