mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-07-19 06:52:56 +00:00

* Added uniform normalization method to each of the DocStores (implemented), so that now Milvus and Weaviate doc stores can use cosine similarity, plus future method for making existing embeddings normaziled (empty for now). * Fixed a typo. * Fixed lots of stuff. Performed local tests. * Fixed scores representation for cosine. Assuming Weavieate's rep needs no change. * fixes as per discussion * Trigger CI * resolving conflicts * small typo * fixed a param type * cleaned some conflicts resolving left overs * commented out fastmath for a moment * fixing tests * added docstore for small vectors * test * fixed document_store_cosine_small * cosine tests fixes * fixed document_store_cosine_small * fixed weaviate index name and lowered rtol for ES * increased rtol * added explicit doc_ids for weaviate, excluded ES, included Inmemory * resolving mismatch * fixing a typo * flatten normalize_embedding() * fix import for test * standardize normalize_embeddings across doc stores * Add latest docstring and tutorial changes * going for the faster plain dot prod Co-authored-by: fingoldo <fingoldo@gmail.com> Co-authored-by: Malte Pietsch <malte.pietsch@deepset.ai> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>