Retrievers (RAG) for Google ADK that uses langchain
Project description
Langchain Retrievers for Google ADK
Install
uv add adk-retrieval
Usage
Below is an example that shows how to use a retriever from langchain in Google ADK agent.
import wikipedia
from google.adk.agents import LlmAgent
from langchain_community.retrievers import WikipediaRetriever
from adk_retrieval import LangchainRetrievalTool
root_agent = LlmAgent(
name="adk_wikipedia_agent",
description="Agent for summarizing Wikipedia articles.",
instruction="""You are a specialized search & summarizer agent for Wikipedia articles.
""",
model="gemini-2.5-flash",
tools=[
LangchainRetrievalTool(
name="wikipedia_retrieval_tool",
description="Tool for retrieving Wikipedia articles based on user queries.",
retriever=WikipediaRetriever(wiki_client=wikipedia),
)
],
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adk_retrieval-0.0.1.tar.gz.
File metadata
- Download URL: adk_retrieval-0.0.1.tar.gz
- Upload date:
- Size: 224.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b8b17f766cb2a09450c0342fe1ebcec5e220d7fc30b08ad7ed37c7566a01e33
|
|
| MD5 |
794b72b34587ea9ef549f4424930538e
|
|
| BLAKE2b-256 |
99294b7227338455983401d4a9012dc880a3997c7ff38e19b7b4e27ff8fa2b15
|
Provenance
The following attestation bundles were made for adk_retrieval-0.0.1.tar.gz:
Publisher:
publish.yaml on ksachdeva/adk-retrieval
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adk_retrieval-0.0.1.tar.gz -
Subject digest:
0b8b17f766cb2a09450c0342fe1ebcec5e220d7fc30b08ad7ed37c7566a01e33 - Sigstore transparency entry: 712720927
- Sigstore integration time:
-
Permalink:
ksachdeva/adk-retrieval@9194e7fb2ebaf60dd244421b6b8fe0703de848f2 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/ksachdeva
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@9194e7fb2ebaf60dd244421b6b8fe0703de848f2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file adk_retrieval-0.0.1-py3-none-any.whl.
File metadata
- Download URL: adk_retrieval-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ff93e608d1d0205131a0144f4a77ff326c806dee56ac03064ae02249bd1fa4a
|
|
| MD5 |
77ac7cfa4436a7eb9835c94ec87a62d0
|
|
| BLAKE2b-256 |
f8f3e32b6bff040f3f35af18a3f7bd17196511d1652ae9bfc158c58850b907ce
|
Provenance
The following attestation bundles were made for adk_retrieval-0.0.1-py3-none-any.whl:
Publisher:
publish.yaml on ksachdeva/adk-retrieval
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adk_retrieval-0.0.1-py3-none-any.whl -
Subject digest:
4ff93e608d1d0205131a0144f4a77ff326c806dee56ac03064ae02249bd1fa4a - Sigstore transparency entry: 712720932
- Sigstore integration time:
-
Permalink:
ksachdeva/adk-retrieval@9194e7fb2ebaf60dd244421b6b8fe0703de848f2 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/ksachdeva
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@9194e7fb2ebaf60dd244421b6b8fe0703de848f2 -
Trigger Event:
release
-
Statement type: