mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-28 23:07:11 +00:00
milvus: docstring (#23151)
Added missed docstrings. Format docstrings to the consistent format (used in the API Reference) --------- Co-authored-by: Isaac Francisco <78627776+isahers1@users.noreply.github.com> Co-authored-by: isaac hershenson <ihershenson@hmc.edu> Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
@@ -6,6 +6,7 @@ from scipy.sparse import csr_array # type: ignore
|
||||
|
||||
class BaseSparseEmbedding(ABC):
|
||||
"""Interface for Sparse embedding models.
|
||||
|
||||
You can inherit from it and implement your custom sparse embedding model.
|
||||
"""
|
||||
|
||||
@@ -19,8 +20,8 @@ class BaseSparseEmbedding(ABC):
|
||||
|
||||
|
||||
class BM25SparseEmbedding(BaseSparseEmbedding):
|
||||
"""This is a class that inherits BaseSparseEmbedding
|
||||
and implements a sparse vector embedding model based on BM25.
|
||||
"""Sparse embedding model based on BM25.
|
||||
|
||||
This class uses the BM25 model in Milvus model to implement sparse vector embedding.
|
||||
This model requires pymilvus[model] to be installed.
|
||||
`pip install pymilvus[model]`
|
||||
|
Reference in New Issue
Block a user