base_index = VectorStoreIndex.from_documents(documents,
storage_context=storage_context,
service_context=service_context,
show_progress=True)
Does this line embed my documents and save them to my custom vector store? If so, can I call it without passing it to a variable, and then simply query the vector store directly, something like
VectorStoreIndex.from_documents(documents,
storage_context=storage_context,
service_context=service_context,
show_progress=True)
index = VectorStoreIndex.from_vector_store(vector_store=vector_store,
service_context = service_context)
retriever = index.as_retriever(similarity_top_k = similarity_top_k)
or do I need to pass the from_documents part to a variable even if I don't use it ?