How to update the endpoint_url of huggingface vectorizer of an existing collection ? given the model is same

example

client.collections.create(
    "DemoCollection",
    vectorizer_config=[
        Configure.NamedVectors.text2vec_huggingface(
            name="title_vector",
            source_properties=["title"],
            # NOTE: Use only one of (`model`), (`passage_model` and `query_model`), or (`endpoint_url`)
            #model="sentence-transformers/all-MiniLM-L6-v2",
            # passage_model="sentence-transformers/facebook-dpr-ctx_encoder-single-nq-base",    # Required if using `query_model`
            # query_model="sentence-transformers/facebook-dpr-question_encoder-single-nq-base", # Required if using `passage_model`
            endpoint_url="<custom_huggingface_url>",
            #
            # wait_for_model=True,
            # use_cache=True,
            # use_gpu=True,
        )
    ],
)

hi @Haris_khan_Khakwani !!

Unfortunately, we currently don’t have the option to change huggingface’s baseurl url on run time :frowning:

Most of other modules, for example, text2vec-cohere do have this option:

For now, I believe the only option is migrating your data to a new collection with the new endpoint :frowning: I know, should be easier :grimacing:

We will work on adding this feature in future releases.

Thanks!