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
In my crew.py source code, I want use custom embedder as google vertexai like bellow.
So I try to add configuration with my project_id to embedding_config dictionary.
But unfortunately, In embedding_configurator.py in crewai.utilities package do not allow to change the project_id and region.
This make chromadb use default value.
project_id: str = "cloud-large-language-models",
region: str = "us-central1",
And of course, this default value is not my project id and api call not work as expected.
[2025-01-31 08:49:25][ERROR]: Failed to upsert documents: Expected Embedings to be non-empty list or numpy array, got in upsert.
[2025-01-31 08:49:25][WARNING]: Failed to init knowledge: Expected Embedings to be non-empty list or numpy array, got in upsert.
ERROR:root:Error during short_term search: Expected Embedings to be non-empty list or numpy array, got in query.
ERROR:root:Error during entities search: Expected Embedings to be non-empty list or numpy array, got in query
Possible Solution
Make GoogleVertexEmbeddingFunction allow to set project_id and region as well.
Additional context
No
The text was updated successfully, but these errors were encountered:
Description
In my crew.py source code, I want use custom embedder as google vertexai like bellow.
So I try to add configuration with my project_id to embedding_config dictionary.
But unfortunately, In embedding_configurator.py in crewai.utilities package do not allow to change the project_id and region.
This make chromadb use default value.
project_id: str = "cloud-large-language-models",
region: str = "us-central1",
And of course, this default value is not my project id and api call not work as expected.
Steps to Reproduce
Expected behavior
Can use vertex ai with my own project_id
Screenshots/Code snippets
Operating System
Ubuntu 20.04
Python Version
3.10
crewAI Version
0.100.0
crewAI Tools Version
0.33.0
Virtual Environment
Venv
Evidence
[2025-01-31 08:49:25][ERROR]: Failed to upsert documents: Expected Embedings to be non-empty list or numpy array, got in upsert.
[2025-01-31 08:49:25][WARNING]: Failed to init knowledge: Expected Embedings to be non-empty list or numpy array, got in upsert.
ERROR:root:Error during short_term search: Expected Embedings to be non-empty list or numpy array, got in query.
ERROR:root:Error during entities search: Expected Embedings to be non-empty list or numpy array, got in query
Possible Solution
Make GoogleVertexEmbeddingFunction allow to set project_id and region as well.
Additional context
No
The text was updated successfully, but these errors were encountered: