opensearch-project / demos

Apache License 2.0
2 stars 13 forks source link

Added initialization for Cohere Command model #85

Closed yash1506 closed 7 months ago

yash1506 commented 8 months ago

Description

I made the initialize_model function more modular so that it takes in two additional args (model name and description) and creates a command nightly model or the default embed-english model depending on the args. I also created a model_exists helper function for better code readability.

Issues Resolved

It is aimed at resolving issue #62

PS. You might see more changes than expected because I used a Python formatter which modified the code formatting at several places in the document.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.