Find answers from the community

Updated 8 months ago

Again another cannot import issue :"

At a glance
Again another cannot import issue :"cannot import name 'DataFrame' from 'llama_index.core.program'"
the link I refered is from here: https://docs.llamaindex.ai/en/stable/examples/output_parsing/df_program/

I have already update the llama-index and llama-index-core to the latest version
W
L
F
6 comments
It has been moved as an Integration.
You'll have to install this program using:
pip install llama-index-program-evaporate

and then import it like this:
Plain Text
from llama_index.program.evaporate import (
    DFFullProgram,
    DataFrame,
    DataFrameRowsOnly,
)


Find more here: https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/program/llama-index-program-evaporate/llama_index/program/evaporate/df.py
Need to update that example notebook 😮‍💨
maybe cuz llama index is under active devlopment☺️
many thanks bro. it works for me at least in the import part. And here comes another issue: I try to use open source LLM and pydantic to output structured data, so openai's pydantic program does not work here. Are there any open source LLM with pydantic available in llamaindex?
Add a reply
Sign up and join the conversation on Discord