Find answers from the community

Updated 2 months ago

Progress

Hey, when building a VectorStoreIndex, I know you can add the show_progress=True param to show the progress in the terminal like this:

Plain Text
index = VectorStoreIndex.from_documents(docs, show_progress=True)


But I was wondering if its possible to access the progress programmatically through a callback manager or some other means other than just through what gets logged to the console? I couldn't find anything in the docs, and from what I can tell from the source code, that boolean show_progress param doesn't result in any callback that can be accessed without modifying the source. But idk. Any help would be very appreciated, thanks!
L
M
2 comments
Hmm, no programical access currently!

One option could be to create an empty index, and then insert documents one at a time

Then, you have access to keeping track of progress yourself πŸ‘€
Ah okay, thanks anyways! I might try just ouputting the logs to a file or something and reading them that way until I can find a more robust solution lol
Add a reply
Sign up and join the conversation on Discord