You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Proposed Solution
We can add an optional kwarg for embedding dimension during class initialisation that circumvents the need to call the embedding model:
Background
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 is not necessary as right after instantiating the singleton,
from_existing_index
then gets the embedding dimension from the DB anyway.Problem
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.
Proposed Solution
We can add an optional kwarg for embedding dimension during class initialisation that circumvents the need to call the embedding model:
Happy for feedback or thoughts and happy to open the PR myself.
The text was updated successfully, but these errors were encountered: