langchain-dappier
This package contains the LangChain integration with Dappier
Installation
pip install -U langchain-dappier
And you should configure credentials by setting the following environment variables:
export DAPPIER_API_KEY="your-api-key-here"
Retrievers
DappierRetriever class exposes chat models from Dappier.
Parameters:
data_model_id(str): Data model ID, starting withdm_. You can find the available data model IDs at Dappier marketplace.k(int): Number of documents to return.ref(Optional[str]): Site domain where AI recommendations are displayed.num_articles_ref(int): Minimum number of articles from the specifiedrefdomain. The rest will come from other sites within the RAG model.search_algorithm(Literal["most_recent", "most_recent_semantic", "semantic", "trending"]): Search algorithm for retrieving articles.api_key(Optional[str]): The API key used to interact with the Dappier APIs.
from langchain_dappier import DappierRetriever
retriever = DappierRetriever(
data_model_id="dm_01jagy9nqaeer9hxx8z1sk1jx6"
)
query = "latest tech news"
retriever.invoke(query)
Metadata
Release files for langchain-dappier 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_dappier-0.2.4.tar.gz | 7.2 kB | Without provenance | Details for langchain_dappier-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_dappier-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for langchain_dappier-0.2.4-py3-none-any.whl |
Total release size: 15.8 kB
Release files / langchain_dappier-0.2.4.tar.gz
| Download URL | langchain_dappier-0.2.4.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3013a2309b285242f4b23e838f736df5fc65c5f25c05a76ad68d2b072da8a41
|
|
BLAKE2b-256 checksum How to use checksums |
628289384c6a2220a56df8afb0b7f1a97219933909e2ecf3c074fd2128c8fc28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.13.1 Darwin/24.1.0
|
Release files / langchain_dappier-0.2.4-py3-none-any.whl
| Download URL | langchain_dappier-0.2.4-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab6aa8f92d1c619572baf241791005e839fd63764de9b0280a70752e74781fae
|
|
BLAKE2b-256 checksum How to use checksums |
2221157d8b0c5715bd1c2c3a0022569ccbcf0bb76e738ea3ce5d38b41979259e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.13.1 Darwin/24.1.0
|
Security for langchain-dappier 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.