Skip to content

feat: Add YandexGPT Encoder#331

Closed
KirillKukharev wants to merge 3 commits into
aurelio-labs:mainfrom
KirillKukharev:main
Closed

feat: Add YandexGPT Encoder#331
KirillKukharev wants to merge 3 commits into
aurelio-labs:mainfrom
KirillKukharev:main

Conversation

@KirillKukharev

Copy link
Copy Markdown

Pull Request Description:

This pull request adds a new encoder class, YandexGPTEncoder, for generating text embeddings using the YandexGPT API. The encoder integrates with the semantic_router.

Changes Introduced:

  • New Encoder Class: YandexGPTEncoder for YandexGPT API integration.
  • Initialization: Requires YandexGPT API key and catalog ID, which can be provided directly or via environment variables.
  • Unit tests and docs for YandexGPT encoder

Method Implementation:

  • _initialize_client for setting up the API client.
  • get_headers for preparing the request headers.
  • call for generating embeddings by making API requests.

* add yandexgpt encoder

* add unit tests for YandexGPT

* Change encoder type name
@KirillKukharev KirillKukharev changed the title Add YandexGPT Encoder feat: Add YandexGPT Encoder Jun 19, 2024
@KirillKukharev

Copy link
Copy Markdown
Author

@jamescalam could you review this PR please?

@all-mute

Copy link
Copy Markdown

@jamescalam

Copy link
Copy Markdown
Member

stale - although I will note that we're open to adding yandex support here - but it would need to be updated to align with latest API

@jamescalam jamescalam closed this Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants