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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

amaan-ai20
Copy link

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 Dec 26, 2024 1:43pm

@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
Author

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

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 Ɑ: retriever Related to retriever module size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Triage
Development

Successfully merging this pull request may close these issues.

1 participant