I think there was a slight error given you to above
It should be something like this
Plain Text
# load documents from your github loader, whatever that looks like lol
documents = loader().load_dat()
# insert
for doc in documents:
index.insert(document)