Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide optional parameter for embedding dimension in Neo4jVector #31

Conversation

tdennisliu
Copy link
Contributor

@tdennisliu tdennisliu commented Jan 7, 2025

Description

From this issue.
When loading an existing index via Neo4jVector.from_existing_index(), a singleton of Neo4jVector is created, which in init calls the embedding model to find the number of embedding dimensions..
This call to the embedding model is a headache in CICD, where you do not want to and can not call third-party embedding services during integration tests.

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Project configuration change

Complexity

Low

How Has This Been Tested?

  • Unit tests
  • Integration tests
  • Manual tests

Checklist

  • Unit tests updated
  • Integration tests updated
  • CHANGELOG.md updated

@tdennisliu tdennisliu marked this pull request as ready for review January 7, 2025 05:08
@alexthomas93
Copy link
Collaborator

@CodiumAI-Agent /update_changelog

@CodiumAI-Agent
Copy link

Changelog updates: 🔄

2025-01-08

Added

  • Optional parameter to specify embedding dimension in Neo4jVector, avoiding the need to query the embedding model.

to commit the new content to the CHANGELOG.md file, please type:
'/update_changelog --pr_update_changelog.push_changelog_changes=true'

@alexthomas93 alexthomas93 self-requested a review January 8, 2025 11:21
Copy link
Collaborator

@alexthomas93 alexthomas93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@alexthomas93 alexthomas93 merged commit 5af91a1 into langchain-ai:main Jan 8, 2025
8 checks passed
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.

Neo4jVector.from_existing_index() requires a call to the embedding model
3 participants