Skip to content

[ENH] Document Embedding: Add any open ai compatible api point - #1160

Open
ales-erjavec wants to merge 2 commits into
biolab:masterfrom
ales-erjavec:oai-embed
Open

[ENH] Document Embedding: Add any open ai compatible api point#1160
ales-erjavec wants to merge 2 commits into
biolab:masterfrom
ales-erjavec:oai-embed

Conversation

@ales-erjavec

Copy link
Copy Markdown
Contributor
Issue
Screenshot 2026-08-21 at 14 05 43

Allow using any openai api compatible provider for document embedding.

Open AI api is widely supported as a compatibility layer for many inference providers.

Unfortunately it has no good option/specification for input token truncation (no query for model input context length, no query for used tokenizer, ...), so expect frequent input to long errors.

Best used with ollama which auto truncates the input.

Description of changes

Add support for any open ai api compatible provider.

Includes
  • Code changes
  • Tests
  • Documentation

@janezd

janezd commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

@ales-erjavec, can you rebase to master, please?

It fixes the problem with class properties in filter.py as well as most other problems.

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.

2 participants