Find answers from the community

Home
Members
ihgumilar_
i
ihgumilar_
Offline, last seen 4 weeks ago
Joined September 25, 2024
@kapa.ai
I have multiple indices that are already in llamacloud. However, I want to assign specific documents to a certain agent. In other words, I want to use multiple document agents. Can you tell me how to do that ? Assuming I want to have 2 or 3 agents where each agent will be assigned particular documents. So that I can query later on
9 comments
k
i
Hi Friends,
I am trying to use gemini by following this tutorial https://blog.llamaindex.ai/llamaindex-gemini-8d7c3b9ea97e

The code example shows that it takes some pictures from the internet by putting urls. Since I have my pictures in my local computer, does LlamaIndex have a function that can load image from local computer ?

Here is the code example in that tutorial :

from llama_index.multi_modal_llms.gemini import GeminiMultiModal
from llama_index.multi_modal_llms.generic_utils import (
load_image_urls,
)

image_urls = [
"",
# Add yours here!
]
image_documents = load_image_urls(image_urls)
gemini_pro = GeminiMultiModal(model="models/gemini-pro")
complete_response = gemini_pro.complete(
prompt="Identify the city where this photo was taken.",
image_documents=image_documents,
)
2 comments
i
L