-
Notifications
You must be signed in to change notification settings - Fork 18.7k
feat: add superlinked retriever integration #32433
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
base: master
Are you sure you want to change the base?
feat: add superlinked retriever integration #32433
Conversation
- Add Superlinked as a custom retriever with full LangChain compatibility, usage examples, and docs
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
CodSpeed WallTime Performance ReportMerging #32433 will not alter performanceComparing
|
CodSpeed Instrumentation Performance ReportMerging #32433 will not alter performanceComparing Summary
|
1af0778
to
9dd6679
Compare
fcac6b0
to
08ef8e3
Compare
- Convert from Poetry to PDM backend format to match LangChain standards - Remove circular import in SuperlinkedRetriever docstring - Delete poetry.lock file (no longer needed with PDM) - Update notebook to follow LangChain template requirements
08ef8e3
to
48755ff
Compare
ready for review @fm1320 ? |
Hey @mdrxy still finishing up some of the stuff with the external package, will update this as a docs only PR soon |
…integration to external package
…es; convert examples to ipynb; align retriever notebook with links and app/query guidance
feat(superlinked): add superlinked retriever integration
Description:
Add Superlinked as a custom retriever with full LangChain compatibility. This integration enables users to leverage Superlinked's multi-modal vector search capabilities including text similarity, categorical similarity, recency, and numerical spaces with flexible weighting strategies. The implementation provides a
SuperlinkedRetriever
class that extends LangChain'sBaseRetriever
with comprehensive error handling, parameter validation, and support for various vector databases (in-memory, Qdrant, Redis, MongoDB).Key Features:
BaseRetriever
compatibility withk
parameter supportIssue: N/A (new integration)
Dependencies:
superlinked==33.5.1
(peer dependency, imported within functions)pandas^2.2.0
(required by superlinked)Linkedin handle: https://www.linkedin.com/in/filipmakraduli/
Implementation Details
Files Added/Modified:
libs/partners/superlinked/
- Complete package structurelibs/partners/superlinked/langchain_superlinked/retrievers.py
- Main retriever implementationlibs/partners/superlinked/tests/unit_tests/test_retrievers.py
- unit testslibs/partners/superlinked/tests/integration_tests/test_retrievers.py
- Integration tests with mockingdocs/docs/integrations/retrievers/superlinked.ipynb
- Documentation a few usage examplesTesting:
make format
- passingmake lint
- passingmake test
- passing (16 unit tests, integration tests)Documentation:
Code Quality: