Hi - I'm trying to set a custom "doc_id" for each record from my database load, so that I can easily identify rows and hopefully not duplicate them later.
any idea why the "doc_id"s are still coming out as the long default ids?
documents = db.load_data(query = query)
for document in documents:
# split the text by comma and take the first value
first_value = document.get_text().split(',')[0]
print(first_value) #this does work
# assign the first_value as the doc_id of the document
document.id_ = first_value
print(documents)