Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: VectorStoreIndex creation issue from text node #17946

Open
1 task done
daniyaniazidev opened this issue Feb 27, 2025 · 1 comment
Open
1 task done

[Question]: VectorStoreIndex creation issue from text node #17946

daniyaniazidev opened this issue Feb 27, 2025 · 1 comment
Labels
question Further information is requested

Comments

@daniyaniazidev
Copy link

Question Validation

  • I have searched both the documentation and discord for an answer.

Question

Image

I am following this example https://github.com/run-llama/llama_cloud_services/blob/main/examples/parse/multimodal/multimodal_report_generation.ipynb
and while creating vector index for my text node i am getting this error

@daniyaniazidev daniyaniazidev added the question Further information is requested label Feb 27, 2025
Copy link

dosubot bot commented Feb 27, 2025

Hello, @daniyaniazidev! I'm here to help you with any bugs, questions, or contributions you have. Let's work together to solve the issue you're facing.

The TypeError you're encountering, indicating that a 'MockValSer' object cannot be converted to 'SchemaSerializer', suggests an issue with the serialization process in the llama_index library. This error is wrapped in a PydanticSerializationError, pointing to a problem with how Pydantic is handling the serialization.

Here are a few steps you can take to troubleshoot and potentially resolve this issue:

  1. Check Data Types: Ensure that the data types you're using in your code match the expected types for the custom_model_dump function. The function expects a SerializerFunctionWrapHandler for the handler parameter and a SerializationInfo for the info parameter [1].

  2. Review the Example Notebook: Since you're following an example from a Jupyter notebook, carefully review the sections related to vector indexing and serialization. Ensure that your implementation aligns with the examples provided, particularly in how data is prepared and passed to the llama_index functions.

  3. Pydantic Version: Make sure you are using a compatible version of Pydantic. The llama_index library requires pydantic version >=2.8.0 [2].

  4. Serialization and Deserialization: The llama_index library uses the JsonSerializer class for handling Pydantic models. Ensure that your data structures are compatible with this serialization approach [3].

If these steps do not resolve the issue, consider simplifying your code to isolate the problem or checking for any updates or patches in the llama_index library that might address this specific error.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant