Find answers from the community

Updated 4 months ago

are the docs outdated

At a glance
are the docs outdated?
Plain Text
from llama_index import GPTSimpleVectorIndex, GPTListIndex

index1 = GPTSimpleVectorIndex.from_documents(documents1)
index2 = GPTSimpleVectorIndex.from_documents(documents2)

# Set summary text
# you can set the summary manually, or you can
# generate the summary itself using LlamaIndex
index1.set_text("summary1")
index2.set_text("summary2")

raises an error: AttributeError: 'GPTSimpleVectorIndex' object has no attribute 'set_text'
furthermore,
Plain Text
index3 = GPTListIndex([index1, index2])

raises an error: ValueError: nodes must be a list of Node objects.
L
O
10 comments
Very outdated... what page had this?
Oh wow yeah that makes a lot of sense then lol. I’ll see if I can find the pages again and let you know. Thanks for the response
i had a bunch of tabs open so i couldt find it but here it is.

https://gpt-index.readthedocs.io/en/latest/guides/primer/usage_pattern.html

under header 4. [Optional, Advanced] Building indices on top of other indices
at first i thought i might've been on an old version of the docs but as you can see from the url it's on latest
Thanks for catching that! I'll try to update that at some point today
also this
Attachments
Schermafbeelding_2023-04-25_om_22.06.09.png
Schermafbeelding_2023-04-25_om_22.05.20.png
Yes, don't define that mode hahaha
I'll take a sweep over that as well
oh yeah i see lol
Attachment
Schermafbeelding_2023-04-25_om_22.42.08.png
Add a reply
Sign up and join the conversation on Discord