Improvement[Community]Improve Embeddings API (#28038)

- Fix `BaichuanTextEmbeddings` api url
- Remove unused params in api doc
- Fix word spelling
This commit is contained in:
ZhangShenao
2024-11-13 02:57:35 +08:00
committed by GitHub
parent e290736696
commit ca7375ac20
3 changed files with 4 additions and 5 deletions

View File

@@ -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.
"""