Hi all,Firstly thanks for the amazing and quick responses.
My issue is with initialzing an index. I am using Qdrant for my chat engine backend, and I have multiple collections inside. Now I am taking inoput from user to use different collections. Below is the code I am using, but the error I'm facing is the index does not change when the collection changes even when I initialze the chat again
def initializeChat():
client = qdrant_client.QdrantClient(
url=f"{url}")
vector_store = QdrantVectorStore(client=client, collection_name=f"{collection}")
index = VectorStoreIndex.from_vector_store(
vector_store=vector_store, service_context=service_context)
print(collection)
return index
It initialized for collection1, but when user passes collection2 , I run the above lines of code again,(print statement prints as collection2), the index does not change and is still using previous collection. How to solve for this
FYI more details of my code: Chat is a websocket, it triggers above initializeChat