Find answers from the community

Updated 9 months ago

Again another cannot import issue :"

At a glance

The community member is experiencing an issue with importing the DataFrame from the llama_index.core.program module. They have updated the llama-index and llama-index-core to the latest versions but the issue persists.

Another community member suggests that the DataFrame has been moved to an Integration, and the community member should install the llama-index-program-evaporate package and import the necessary classes from the llama_index.program.evaporate module.

The community members also discuss that the example notebook may need to be updated, as the llama-index library is under active development. Additionally, the community member is interested in using open-source language models with pydantic for structured data output, and another community member suggests looking at the examples for LLM programs in the llama-index documentation.

Useful resources
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