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
I removed these check for client and it started working.
# Check if the embedding model has the required attributesifnothasattr(embedding_model, "client") ornotembedding_model.client:
msg="Embedding model client not properly initialized"raiseValueError(msg)
# Ensure the base URL has proper protocolifhasattr(embedding_model.client, "base_url"):
base_url=embedding_model.client.base_urlifnotbase_url.startswith(("http://", "https://")):
embedding_model.client.base_url=f"https://{base_url}"
Bug Description
This is my mistral embedding flow, which works outside of langflow.
![image](https://private-user-images.githubusercontent.com/8284972/402400622-34c887a5-31e7-4e9b-84c3-97a1186ea902.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0OTE4NjEsIm5iZiI6MTczOTQ5MTU2MSwicGF0aCI6Ii84Mjg0OTcyLzQwMjQwMDYyMi0zNGM4ODdhNS0zMWU3LTRlOWItODRjMy05N2ExMTg2ZWE5MDIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMDAwNjAxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDZmYzgwZThlMDU2NmRjZDM5NzFlYmJlMjFjNWQ2ZjA5NWJlNWFhYmY1YTljOTY3OTkwYmViMTk1ZGNmYjlhNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.-SADhnAZTjsPscm3AryLIBbmPz39afxM8X3skLo-anc)
Mistral embedding component throws error.
![image](https://private-user-images.githubusercontent.com/8284972/402400648-0631d5cf-c59d-4523-8574-876b986ea7d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0OTE4NjEsIm5iZiI6MTczOTQ5MTU2MSwicGF0aCI6Ii84Mjg0OTcyLzQwMjQwMDY0OC0wNjMxZDVjZi1jNTlkLTQ1MjMtODU3NC04NzZiOTg2ZWE3ZDkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMDAwNjAxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmU1NzI1M2IwYTBhMmU4N2JmYTMzYWNkNzI2M2UyNDdiMjZkZWU3ZTEyN2E0ODcxNGVkY2E4NjU3MjVmOGZhMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Kki6_PtVPI0kP7LhIeALfi81wXWEGE0V6mWU0fQwAKw)
This is LM Studio and Ollama embedding flow,
Both of them throws error,
I know they works outside of langflow, and even langflow can access it, otherwise it wouldn't be able to read the model names.
I thought okay, maybe all embeddings are broken on my version somehow, but then I tested with cohere and it definitely worked as per this screenshot.
Which means those components have issues.
This is the error trace,
Reproduction
Create a embedding with mistral, ollama or lm studio api.
Expected behavior
Embedding models works without throwing errors like it did with cohere embeddings.
Who can help?
No response
Operating System
Darwin Developers-Mini.lan 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 19:04:03 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8132 arm64
Langflow Version
Version 1.1.1.dev28 from langflowai/langflow-nightly:latest image
Python Version
None
Screenshot
No response
Flow File
No response
The text was updated successfully, but these errors were encountered: