{"record":{"id":"81155468b7505287","repo":"FlowiseAI/Flowise","slug":"collection-args-collectionname-not-found-you-c","errorCode":null,"errorMessage":"Collection ${args.collectionName} not found. You can create a new Collection by providing embeddingDimensions.","messagePattern":"Collection (.+?) not found\\. You can create a new Collection by providing embeddingDimensions\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/components/nodes/vectorstores/Zep/Zep.ts","lineNumber":223,"sourceCode":"\n    async initializeCollection(args: IZepConfig & Partial<ZepFilter>) {\n        this.client = await ZepClient.init(args.apiUrl, args.apiKey)\n        try {\n            this.collection = await this.client.document.getCollection(args.collectionName)\n        } catch (err) {\n            if (err instanceof Error) {\n                if (err.name === 'NotFoundError') {\n                    await this.createNewCollection(args)\n                } else {\n                    throw err\n                }\n            }\n        }\n    }\n\n    async createNewCollection(args: IZepConfig & Partial<ZepFilter>) {\n        if (!args.embeddingDimensions) {\n            throw new Error(\n                `Collection ${args.collectionName} not found. You can create a new Collection by providing embeddingDimensions.`\n            )\n        }\n\n        this.collection = await this.client.document.addCollection({\n            name: args.collectionName,\n            description: args.description,\n            metadata: args.metadata,\n            embeddingDimensions: args.embeddingDimensions,\n            isAutoEmbedded: false\n        })\n    }\n\n    async similaritySearchVectorWithScore(\n        query: number[],\n        k: number,\n        filter?: Record<string, unknown> | undefined\n    ): Promise<[Document, number][]> {","sourceCodeStart":205,"sourceCodeEnd":241,"githubUrl":"https://github.com/FlowiseAI/Flowise/blob/abe4a8601a058047b350c260676826e21dd14101/packages/components/nodes/vectorstores/Zep/Zep.ts#L205-L241","documentation":"Thrown by createNewCollection() when the named collection does not exist on the Zep server and args.embeddingDimensions is not supplied. Because isAutoEmbedded is false (the store receives precomputed embeddings from Flowise's embeddings model), Zep cannot size the collection itself and requires embeddingDimensions at creation time.","triggerScenarios":"First use of a brand-new collection name while nodeData.inputs.dimension is undefined/0/falsy, so args.embeddingDimensions is missing when the store tries to create the collection.","commonSituations":"Forgot to set the 'dimension' input on the Zep node; collection name typo (intended to reference an existing collection but actually new); Zep server data was wiped/reset so the expected collection no longer exists.","solutions":["Set the Zep node's 'dimension' input to match your embeddings model (e.g. 1536 for OpenAI text-embedding-ada-002, 1536/3072 for text-embedding-3-*, etc.).","Or pre-create the collection on the Zep server with the correct embeddingDimensions.","Double-check the collection name spelling — if it was meant to match an existing collection, correct it."],"exampleFix":"// before: dimension not set on node\nnodeData.inputs?.dimension // undefined -> createNewCollection throws\n\n// after\nnodeData.inputs.dimension = 1536 // match embeddings model","handlingStrategy":"validation","validationCode":"// Ensure embeddingDimensions is set before the store tries to create the collection\nfunction ensureZepDimension(args) {\n    if (!args.embeddingDimensions || args.embeddingDimensions <= 0) {\n        throw new Error(\n            `Collection ${args.collectionName} does not exist. Set embeddingDimensions (e.g. 1536 for OpenAI ada-002) so it can be created.`\n        )\n    }\n}","typeGuard":"function hasEmbeddingDimensions(args) {\n    return typeof args.embeddingDimensions === 'number' && args.embeddingDimensions > 0\n}","tryCatchPattern":"try {\n    await store.initializeCollection(args)\n} catch (e) {\n    if (/not found.*embeddingDimensions/i.test(e.message)) {\n        // set dimension on the node and retry\n    }\n    throw e\n}","preventionTips":["Always set the Zep node 'dimension' input to match your embeddings model.","For shared Zep servers, pre-create collections with explicit dimensions.","Treat any 'Collection not found' as a config smell — confirm the name and the dimension."],"tags":["zep","collection","embedding-dimensions","configuration"],"backgroundTag":null,"analyzedSha":"abe4a8601a058047b350c260676826e21dd14101","analyzedAt":"2026-08-12T16:04:40.823Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}