Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

partners: Use simsimd types #25299

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Conversation

cbornet
Copy link
Collaborator

@cbornet cbornet commented Aug 12, 2024

The simsimd package now has types

@efriis efriis added the partner label Aug 12, 2024
@efriis efriis self-assigned this Aug 12, 2024
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 12, 2024
Copy link

vercel bot commented Aug 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Aug 16, 2024 11:06am

@dosubot dosubot bot added Ɑ: vector store Related to vector store module 🔌: milvus Primarily related to Milvus vector store integration 🔌: mongo Primarily related to Mongo integrations 🔌: pinecone Primarily related to Pinecone vector store integration 🔌: qdrant Primarily related to Qdrant vector store integration 🤖:improvement Medium size change to existing code to handle new use-cases labels Aug 12, 2024
@cbornet cbornet force-pushed the simsimd-types branch 2 times, most recently from 887c384 to 5902b34 Compare August 16, 2024 10:52
@@ -77,7 +77,7 @@ def invoke_cosine_similarity_top_k_score_threshold(
expected_scores = [1.0, 0.93419873, 0.87038828, 0.83743579]
actual_idxs, actual_scores = cosine_similarity_top_k(X, Y, score_threshold=0.8)
assert actual_idxs == expected_idxs
assert np.allclose(expected_scores, actual_scores)
assert np.allclose(expected_scores, actual_scores, rtol=1.0e-3)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simsimd 5 is faster at the cost of a little precision: ashvardanian/SimSIMD#153

@cbornet cbornet changed the title Use simsimd types [partners] Use simsimd types Aug 21, 2024
@cbornet cbornet changed the title [partners] Use simsimd types partners: Use simsimd types Aug 22, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Aug 23, 2024
@ccurme ccurme merged commit 7f1e444 into langchain-ai:master Aug 23, 2024
136 checks passed
@cbornet cbornet deleted the simsimd-types branch August 23, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:improvement Medium size change to existing code to handle new use-cases lgtm PR looks good. Use to confirm that a PR is ready for merging. 🔌: milvus Primarily related to Milvus vector store integration 🔌: mongo Primarily related to Mongo integrations partner 🔌: pinecone Primarily related to Pinecone vector store integration 🔌: qdrant Primarily related to Qdrant vector store integration size:S This PR changes 10-29 lines, ignoring generated files. Ɑ: vector store Related to vector store module
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants