Find answers from the community

Updated 3 months ago

Is there an option to recreate the

Is there an option to recreate the MultiModalVectorStoreIndex once the collections are in a Qdrant Cluster? from_vector_store does not work as Qdrant only takes 1 collection. Which approach is doable The only solution I see is creating a local client, but I want to do it from a cluster


Initialize Qdrant client

client = QdrantClient(
url=QDRANT_URL,
api_key=QDRANT_API_KEY
)


text_store = QdrantVectorStore(
client=client, collection_name="text_collection"
)
image_store = QdrantVectorStore(
client=client, collection_name="image_collection"
)
storage_context = StorageContext.from_defaults(
vector_store=text_store, image_store=image_store
)

Create the MultiModal index

documents = SimpleDirectoryReader("/content/output_folder").load_data()

index = MultiModalVectorStoreIndex.from_documents(
documents,
storage_context=storage_context,
embed_model=embed_model
)
L
B
2 comments
.from_vector_store(text_store, image_vector_store=image_store, ...)
Thanks Logan! I will try this one
Add a reply
Sign up and join the conversation on Discord