genai.text.experimental.sentence_similarity.sentence_similarity_service module#
- class genai.text.experimental.sentence_similarity.sentence_similarity_service.SentenceSimilarityService[source]#
Bases:
BaseService
[BaseServiceConfig
,BaseServiceServices
]EXPERIMENTAL Text Sentence Similarity service, this service may change in the near future.
- create(*, model_id, source_sentence, sentences, parameters=None)[source]#
- Parameters:
model_id (str) –
source_sentence (str) –
sentences (list[str]) –
parameters (TextSentenceSimilarityParameters | None) –
- Return type: