deepset-ai / haystack

:mag: AI orchestration framework to build customizable, production-ready LLM applications. Connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data. With advanced retrieval methods, it's best suited for building RAG, question answering, semantic search or conversational agent chatbots.
https://haystack.deepset.ai
Apache License 2.0
16.93k stars 1.85k forks source link

Remove usage of `numpy` and use builtin `math` when possible #8408

Open silvanocerza opened 3 days ago

silvanocerza commented 3 days ago

Numpy is an heavy library to import and we overuse it all around the codebase.

We should remove it and fallback to use builtin math whenever possible to speed up import speed.

vaishjah3 commented 3 days ago

Sorry for the naive question, but I am really new to this. So, do you expect numpy functions to be converted to math functions in the code wherever possible?