@Logan M Thanks. Assume I am dealing with a case like below.
I have an index that looks like below
index = GPTVectorStoreIndex.from_documents(
document, service_context=service_context
)
I can run query on this index, let's call it query1:
query_engine = index.as_query_engine()
query1 = "Question to be answered"
results = query_engine.query(query)
print(results)
Now, let's assume I add another document via
index = load_index_from_storage(
storage_context, service_context=service_context
)
index.insert(document[0])
index.storage_context.persist()
And run another query, let's call is query 2:
query2 = "2nd Question to be answered"
results = query_engine.query(query)
print(results)
Is the second question more expensive? I didn't change the top_k and it is whatever default value it has.