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:
Return type:

TextSentenceSimilarityCreateResponse