----------------------
Based on the information provided in the extracts, it's not explicitly stated whether the
QdrantVectorStore
creates a new collection if it doesn't exist. However, in typical usage, the
QdrantVectorStore
is initialized with a
QdrantClient
and a
collection_name
.
Here is an example of how it's done:
client = qdrant_client.QdrantClient(
location=":memory:"
)
vector_store = QdrantVectorStore(client=client, collection_name="paul_graham")
(Source:
QdrantIndexDemo ())
If the collection doesn't exist after running your code, it's possible that you might need to create the collection manually before inserting documents. However, without explicit information from the documentation or the code extracts, it's hard to say for certain.
I would recommend checking the Qdrant documentation or the
qdrant-client
package documentation for more details on how collections are handled.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------