mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-25 04:49:17 +00:00
Improvement[Community]Improve Embeddings API (#28038)
- Fix `BaichuanTextEmbeddings` api url - Remove unused params in api doc - Fix word spelling
This commit is contained in:
@@ -36,7 +36,8 @@ class DeterministicFakeEmbedding(Embeddings, BaseModel):
|
||||
np.random.seed(seed)
|
||||
return list(np.random.normal(size=self.size))
|
||||
|
||||
def _get_seed(self, text: str) -> int:
|
||||
@staticmethod
|
||||
def _get_seed(text: str) -> int:
|
||||
"""
|
||||
Get a seed for the random generator, using the hash of the text.
|
||||
"""
|
||||
|
Reference in New Issue
Block a user