Skip to content

Comments

feat: add Jina embeddings integration#2172

Closed
chikingsley wants to merge 1 commit intomem0ai:mainfrom
chikingsley:feature/jina-embeddings
Closed

feat: add Jina embeddings integration#2172
chikingsley wants to merge 1 commit intomem0ai:mainfrom
chikingsley:feature/jina-embeddings

Conversation

@chikingsley
Copy link

@chikingsley chikingsley commented Jan 22, 2025

Description

Add Jina AI embeddings support to mem0. This integration allows users to generate embeddings using Jina's API with configurable options for model selection, custom parameters, and API endpoints.

Key features:

  • Integration with Jina AI embeddings API
  • Support for custom base URL via jina_base_url config or JINA_API_BASE env var
  • Default model: jina-embeddings-v3 with 768 dimensions
  • Support for custom model parameters via model_kwargs

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Unit Test
    • Test default model configuration
    • Test custom model parameters
    • Test environment variable and config-based API keys
    • Test newline handling in input text
    • Test error handling for missing API key
    • Test custom base URL configuration

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Maintainer Checklist

  • Made sure Checks passed

@CLAassistant
Copy link

CLAassistant commented Jan 22, 2025

CLA assistant check
All committers have signed the CLA.

@chikingsley chikingsley closed this by deleting the head repository Jun 26, 2025
@marcellov7
Copy link

Hi
Is there any news? recently came out v4!

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