I am thinking i have not defined the word index properly. index.upsert(vectors=ids_vectors_chunk) # Assuming index defined elsewhere is the code from the site.
(also side note, this doesnt use llama index lol. I feel like you might have better luck using llama index and/or langchain for this, but I understand wanting to do it from scratch)