Retriever tools #365
|
The abstractions provided by ADK seem great! I'm looking around for something to help with making tools that can retrieve context for user queries, something along the lines of LlamaIndex's QueryEngine or Retrievers. I did go through the RAG sample, but that's tied to Vertex RAG. Is there a way I can use say a LlamaIndex retriever along with ADK agents? Perhaps as a tool? |
Replies: 3 comments
|
Thank you for this, I was looking for this everywhere. I wanted a rag implementation |
|
Tried using llama-index retrievers as function tools. Not very idiomatic, but it works - since it can just be a python function |
|
We have a tool just for this: https://github.com/google/adk-python/blob/main/src/google/adk/tools/retrieval/llama_index_retrieval.py |
We have a tool just for this: https://github.com/google/adk-python/blob/main/src/google/adk/tools/retrieval/llama_index_retrieval.py