The problem is that the application does not know when it is their first start, so it doesnt know if it should embed documents and add it to the index.
I'd like to do something like:
vector_store = WeaviateVectorStore(
weaviate_client=client, index_name="LlamaIndex"
)
index = VectorStoreIndex.from_vector_store(store)
if not index.has_docs_with_embeddings:
docs = simpleDirectoryLoader(...)
index = VectorStoreIndex.from_documents(docs)
Do you get what I mean? I might not be clear enough with the problem definition