Closed ucas010 closed 2 months ago
i got the bug refer to the https://docs.trychroma.com/guides/embeddings
from chromadb import Documents, EmbeddingFunction, Embeddings
class MyEmbeddingFunction(EmbeddingFunction):
def __call__(self, input: Documents) -> Embeddings:
# embed the documents somehow
return embeddings
could u pls help me ?
@ucas010 the simple way to do this is to generate the embeddings yourself outside of chroma and pass them to add
and query
collection = client.get_or_create_collection(name='example')
collection.add(embeddings=[...], ...)
collection.query(query_embeddings=[..], ...)
Describe the problem
I get the embeddings just from a URL from cloud , such as
then how i set the Embedding function ?
Describe the proposed solution
want to support the URL requests
Alternatives considered
No response
Importance
nice to have
Additional Information
No response