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
from chromadb.api.types import Documents, Embeddings, Embeddable, Images, Protocol
from transformers import pipeline
from typing import TypeVar, Union
config = {
"embedding_model": "microsoft/Multilingual-MiniLM-L12-H384",
# ...other stuff omitted for brevity
}
pipeline = pipeline(
task="feature-extraction",
model=config['embedding_model']
)
Embeddable = Union[Documents, Images]
D = TypeVar("D", bound=Embeddable, contravariant=True)
class EmbeddingFunction(Protocol[D]):
def __call__(self, input: D) -> Embeddings:
return pipeline(input, return_tensors=True)
Got error in log output below, instructing me to do the thing I just did. Any help would be greatly appreciated. :)
Versions
chromadb version 0.5.7,
chroma-hnswlib 0.7.6 (this was installed by chroma, not me directly)
python 3.10.12
Ubuntu 22.04
Relevant log output
ValueError: Expected EmbeddingFunction.__call__ to have the following signature: odict_keys(['self', 'input']), got odict_keys(['self', 'args', 'kwargs'])
E Please see https://docs.trychroma.com/guides/embeddings for details of the EmbeddingFunction interface.
E Please note the recent change to the EmbeddingFunction interface: https://docs.trychroma.com/deployment/migration#migration-to-0.4.16---november-7,-2023
The text was updated successfully, but these errors were encountered:
What happened?
Followed instructions here exactly:
https://docs.trychroma.com/deployment/migration#migration-to-0.4.16---november-7,-2023
Got error in log output below, instructing me to do the thing I just did. Any help would be greatly appreciated. :)
Versions
chromadb version 0.5.7,
chroma-hnswlib 0.7.6 (this was installed by chroma, not me directly)
python 3.10.12
Ubuntu 22.04
Relevant log output
The text was updated successfully, but these errors were encountered: