Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adk_retrieval-0.0.1.tar.gz (224.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adk_retrieval-0.0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for adk_retrieval-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0b8b17f766cb2a09450c0342fe1ebcec5e220d7fc30b08ad7ed37c7566a01e33
MD5 794b72b34587ea9ef549f4424930538e
BLAKE2b-256 99294b7227338455983401d4a9012dc880a3997c7ff38e19b7b4e27ff8fa2b15

See more details on using hashes here.

Provenance

The following attestation bundles were made for adk_retrieval-0.0.1.tar.gz:

Publisher: publish.yaml on ksachdeva/adk-retrieval

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for adk_retrieval-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ff93e608d1d0205131a0144f4a77ff326c806dee56ac03064ae02249bd1fa4a
MD5 77ac7cfa4436a7eb9835c94ec87a62d0
BLAKE2b-256 f8f3e32b6bff040f3f35af18a3f7bd17196511d1652ae9bfc158c58850b907ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for adk_retrieval-0.0.1-py3-none-any.whl:

Publisher: publish.yaml on ksachdeva/adk-retrieval

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page