这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@sdarioz
Copy link
Contributor

@sdarioz sdarioz commented May 5, 2025

PR: Add gemini-embedding-exp-03-07 model support

Changes

Frontend (EmbeddingSelection/GeminiOptions/index.jsx)

  • Added the new "gemini-embedding-exp-03-07" model to the available embeddings dropdown
  • Users can now select between "text-embedding-004" and the new experimental model

Backend (EmbeddingEngines/gemini/index.js)

  • Implemented dynamic token limit handling:

    • 8,192 tokens for the new "gemini-embedding-exp-03-07" model
    • 2,048 tokens for existing model
  • Minor readability improvements:

    • Better variable naming for error handling
    • Consistent code formatting and structure
    • Descriptive comments

Testing

  • Verified model selection in the UI dropdown
  • Confirmed dynamic token limit handling based on model selection
  • Maintained backward compatibility with existing functionality

These changes enable the system to use Gemini latest embedding model

@timothycarambat timothycarambat merged commit 4f23e44 into Mintplex-Labs:master May 5, 2025
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
* adds gemini-embedding-exp-03-07 support

* unset random changes, make model map

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
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