Skip to content

Commit

Permalink
refactor(embedding): replace STEmbedding with LocalEmbedding
Browse files Browse the repository at this point in the history
Replace usages of STEmbedding with LocalEmbedding for consistency and clarity.
  • Loading branch information
phodal committed Jul 7, 2024
1 parent 3d1f4a8 commit edcf4ed
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ open class LocalEmbedding(

companion object {
/**
* Create a new instance of [STEmbedding] with default model.
* Create a new instance of [LocalEmbedding] with default model.
* We use official model: [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2)
* We can use [optimum](https://github.com/huggingface/optimum) to transform the model to onnx.
*/
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion server/src/test/kotlin/RagIntegrationTests.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import cc.unitmesh.cf.LocalEmbedding
import cc.unitmesh.cf.STEmbedding
import cc.unitmesh.cf.infrastructure.llms.embedding.SentenceTransformersEmbedding
import cc.unitmesh.nlp.embedding.Embedding
import cc.unitmesh.rag.document.Document
Expand Down

0 comments on commit edcf4ed

Please sign in to comment.