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

Adding an example of setting up local embedding model #322

Merged
merged 7 commits into from
Jul 2, 2024

Conversation

ZiTao-Li
Copy link
Collaborator

@ZiTao-Li ZiTao-Li commented Jul 1, 2024


name: Adding an example of setting up local embedding model
about: as title

Description

As title says:

  • provide an example in the tutorial for setting up a local embedding model based on sentence_transformers, which supports both HuggingFace and ModelScope models.
  • provide an example of how to use PostAPIEmbeddingWrapper

Related to #315

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has passed all tests
  • Docstrings have been added/updated in Google Style
  • Documentation has been updated
  • Code is ready for review

@ZiTao-Li ZiTao-Li self-assigned this Jul 1, 2024
@ZiTao-Li ZiTao-Li added documentation Improvements or additions to documentation ready for review labels Jul 1, 2024
@DavdGao DavdGao linked an issue Jul 2, 2024 that may be closed by this pull request
Copy link
Collaborator

@DavdGao DavdGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see inline comments, others lgtm.

docs/sphinx_doc/en/source/tutorial/210-rag.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@DavdGao DavdGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@DavdGao DavdGao merged commit 2641e9b into modelscope:main Jul 2, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to use the local embedding model for text vectorization?
2 participants