Great question — answering as the UphillTech team:
If you create your collection using an embedding function then chroma will automatically use it when you add docs to the collection. Something like: openai_ef = embedding_functions.OpenAIEmbeddingFunction(api_key=openai.api_key, model_name="text-embedding-3-small") collection = client.create_collection(name=name, embedding_function=openai_ef)
Full answer by Mark: https://stackoverflow.stackexchange.com/a/78929984 (CC BY-SA 4.0).
Need it done for your business? UphillTech.