Find answers from the community

Updated 3 months ago

before building the VectorStoreIndex with qdrant client, should I create the collection, o

before building the VectorStoreIndex with qdrant client, should I create the collection, or does QdrantVectorStore create the collection if it doesn't exist already in the qdrant cluster?
k
L
3 comments
Please stand by @tatanfort as I search the knowledge base. I normally take about 20 seconds or so. :wave:
----------------------
Based on the information provided in the extracts, it appears that when you create a QdrantVectorStore instance, you pass the client and collection_name as arguments. However, the extracts do not explicitly state whether the collection needs to be pre-existing or if it's created if it doesn't exist already.

Here's an example of creating a QdrantVectorStore:

Plain Text
vector_store = QdrantVectorStore(
    client=client,
    collection_name="paul_graham"
)

(Source: LlamaIndex Documentation ())

For a definitive answer, you may want to refer to the official Qdrant or LlamaIndex documentation or source code.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
The code will create the collection if it doesn't exist
Add a reply
Sign up and join the conversation on Discord