Find answers from the community

Updated 4 months ago

Imports

Has anyone been able to use this demo?

https://github.com/run-llama/llama_parse/blob/main/examples/multimodal/multimodal_report_generation.ipynb

It seems it's missing a bunch of imports, I'm trying to find the original blog post, but linkedin is buggy AF rng
L
b
21 comments
I took a quick scroll and didn't see any missing imports. What's not working for you?
(If you are installing things are you run the notebook, make sure you give the notebook a restart after installing)
doesn't seem to have the openai imports, anthropic, etc.?
I found the origin of the LinkedIn post now and am trying to look through the notebook, it's been a long day though and I'm very tired
so I could be overlooking somethin
Anthropic import is not needed πŸ‘€ it's just specifying the multi modal llm to use through llama-parse

The openai imports are all there as well

Plain Text
from llama_index.core import Settings
from llama_index.llms.openai import OpenAI
from llama_index.embeddings.openai import OpenAIEmbedding
one sec, let me try to run this again
@Logan M Am I missing somewhere for openai API Keys and LlamaParse keys?
Plain Text
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-5-cb3dd03bead6> in <cell line: 2>()
      1 from llama_index.core import Settings
----> 2 from llama_index.llms.openai import OpenAI
      3 from llama_index.embeddings.openai import OpenAIEmbedding
      4 
      5 embed_model = OpenAIEmbedding(model="text-embedding-3-large")

ModuleNotFoundError: No module named 'llama_index.llms'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
Looks like you don't have openai llm installed πŸ‘€

pip install llama-index-llms-openai

(Kind of weird, since llama-index package is a wrapper for many packages including that. Unless you only installed core)
I just ran the notebook, tbh, been a long day and am tryin' to whip something together quickly
(Be sure to restart your notebook after installing)

Sounds like you might also need pip install llama-index-embeddings-openai llama-index-agent-openai llama-parse
(also, I'm in collab)
that's why things aren't still instlaled)
I guess jerry wrote this assuming things were installed πŸ˜…
haha, yeah, clearly πŸ˜› I guess I can probably run it locally on my mac
and then just have things installed too
A quick pip install llama-index is all it needs fyi
Hmm, still missing somethin'
will keep looking
Add a reply
Sign up and join the conversation on Discord