Mintplex-Labs/anything-llm · error
Failed to create new QDrant collection!
Error message
Failed to create new QDrant collection!
What it means
Creation guard in QDrant.addDocumentToNamespace: the attempt to create the new Qdrant collection for this namespace failed, so subsequent vector upserts cannot proceed and document embedding into Qdrant is aborted.
Source
Thrown at server/utils/vectorDbProviders/qdrant/index.js:185
this.logger("Adding new vectorized document into namespace", namespace);
if (!skipCache) {
const cacheResult = await cachedVectorInformation(fullFilePath);
if (cacheResult.exists) {
const { client } = await this.connect();
const { chunks } = cacheResult;
const documentVectors = [];
vectorDimension =
chunks[0][0]?.vector?.length ??
chunks[0][0]?.values?.length ??
null;
const collection = await this.getOrCreateCollection(
client,
namespace,
vectorDimension
);
if (!collection)
throw new Error("Failed to create new QDrant collection!", {
namespace,
});
for (const chunk of chunks) {
const submission = {
ids: [],
vectors: [],
payloads: [],
};
// Before sending to Qdrant and saving the records to our db
// we need to assign the id of each chunk that is stored in the cached file.
// The id property must be defined or else it will be unable to be managed by ALLM.
chunk.forEach((chunk) => {
const id = uuidv4();
if (chunk?.payload?.hasOwnProperty("id")) {
const { id: _id, ...payload } = chunk.payload;
documentVectors.push({ docId, vectorId: id });View on GitHub (pinned to 3aec848f28)
Solutions
- Check QDrant logs and permissions, then retry.
- Verify the vector dimension and collection configuration.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Creation of a new QDrant collection failed.
Common situations: This error is raised at runtime in server/utils/vectorDbProviders/qdrant/index.js. It occurs when the required configuration for this provider is missing or invalid (unset environment variables, empty API key or base path), when the external service is unreachable or returns an unexpected response, or when invalid input reaches the call site. To prevent it, validate the relevant provider settings and environment variables at startup and confirm the service is reachable before this code path executes.
AI-assisted analysis of Mintplex-Labs/anything-llm@3aec848f28 (2026-08-18).
Data as JSON: /api/errors/8c666e82f3def40b.
Report an issue: GitHub.