Find answers from the community

Updated last year

Is there a migration guide from v6 x to

Is there a migration guide from v6.x to v8.x? There seem to be some pretty fundamental changes in things like the Node vs TextNode and PromptHelpers etc.
W
L
c
5 comments
There's changelog for each version changes and then there's documentation for the latest version.

Changelog: https://gpt-index.readthedocs.io/en/latest/development/changelog.html

Documentation: https://gpt-index.readthedocs.io/en/latest/index.html
The changes really aren't that crazy. Node and TextNode are the same thing.

Prompt helper is still the same, and usually not even needed tbh

I can help migrate some code
@Logan M @WhiteFang_Jr thanks. I got everything to work, with a tiny bit of elbow grease, but I'm not convinced that PromptHelper and TextNode are the same: max_input_size is no longer a valid keyword for PromptHelper and the current version of the TextNode no longer supports get_doc_id. It looks like the code I'm migrating is pretty old though so it probably isn't worth any special attention.
get_doc_id is deprecated in the latest version. You can use Document.doc_id now if it required
For more check this:https://github.com/run-llama/llama_index/blob/main/llama_index/schema.py
max_input_size was renamed to context_window (but also, generally you don't need to define a prompt helper unless you are modifying the overlap, both context_window and num_outputs can be set directly in the service context from_defaults() method)
Add a reply
Sign up and join the conversation on Discord