Find answers from the community

Updated 8 months ago

Index

How to access an already existing data in as_query_engine?

I stored my data in qdrant using:


Plain Text
index = VectorStoreIndex.from_documents(
    documents=documents,
    storage_context=storage_context
)


Now, in another .py file, I want to access it to use for RAG:

Plain Text
index.as_query_engine()


How do I access that index? Do I need to store it somehow and then access?
L
1 comment
You can reconnect to the vector store in qdrant

Plain Text
index = VectorStoreIndex.from_vector_store(qdrant_vector_store)

engine = index as_query_engine()
Add a reply
Sign up and join the conversation on Discord