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

docs: add langchain dappier retriever integration notebooks #28931

Merged
merged 13 commits into from
Jan 3, 2025

Conversation

amaan-ai20
Copy link
Contributor

Add a retriever to interact with Dappier APIs with an example notebook.

The retriever can be invoked with:

from langchain_dappier import DappierRetriever

retriever = DappierRetriever(
    data_model_id="dm_01jagy9nqaeer9hxx8z1sk1jx6",
    k=5
)

retriever.invoke("latest tech news")

To retrieve 5 documents related to latest news in the tech sector. The included notebook also includes deeper details about controlling filters such as selecting a data model, number of documents to return, site domain reference, minimum articles from the reference domain, and search algorithm, as well as including the retriever in a chain.

The integration package can be found over here - https://github.com/DappierAI/langchain-dappier

@amaan-ai20 amaan-ai20 requested a review from efriis as a code owner December 26, 2024 12:32
Copy link

vercel bot commented Dec 26, 2024

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

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 3, 2025 1:29pm

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. Ɑ: retriever Related to retriever module 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder labels Dec 26, 2024
@amaan-ai20 amaan-ai20 marked this pull request as ready for review December 26, 2024 13:45
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Dec 26, 2024
@amaan-ai20
Copy link
Contributor Author

As per @ccurme suggestion, created a separate integration package.
#28889 (review)

@ccurme ccurme self-assigned this Jan 2, 2025
Copy link
Collaborator

@ccurme ccurme left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for this!

It looks like there's already a short provider page for Dappier AI that showcases the ChatDappierAI in langchain-community:

Would you mind updating that page, instead of adding a new one? (I'm not sure to what extent the chat model is still relevant.)

@amaan-ai20
Copy link
Contributor Author

@ccurme Thanks for the review. I have made the suggested changes.

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Jan 3, 2025
@ccurme ccurme merged commit 8d7daa5 into langchain-ai:master Jan 3, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder lgtm PR looks good. Use to confirm that a PR is ready for merging. Ɑ: retriever Related to retriever module size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants