intelligentnode / IntelliNode

Access the latest AI models like ChatGPT, LLaMA, Diffusion, Gemini Hugging face, and beyond through a unified prompt layer and performance evaluation
https://show.intellinode.ai
Apache License 2.0
231 stars 16 forks source link

feat: Add embedding functions and unit tests for Gemini #95

Closed gutyoh closed 10 months ago

gutyoh commented 10 months ago
  1. Updated GeminiAIWrapper.js to include embedding functions
  2. Updated GeminiAIWrapper.test.js with extra unit test case for embedding
  3. Updated RemoteEmbedModel.js by adding Gemini as providing, calling the related function.
  4. Updated RemoteEmbedModel.test.js to include an extra unit test case for the Gemini provider.
  5. Updated config.json to include the Gemini embedding endpoint

With this PR, we should close issue #94

Attached are two text files the results of the GeminiAIWrapper.test.js and RemoteEmbedModel.test.js test runs: