mem0ai/mem0 · error · Error
vectorSearchApiEndpoint is required for get operation
Error message
vectorSearchApiEndpoint is required for get operation
What it means
Error "vectorSearchApiEndpoint is required for get operation" thrown in mem0ai/mem0.
Source
Thrown at mem0-ts/src/oss/src/vector_stores/vertex_ai_vector_search.ts:204
}
}
}
const score =
neighbor.distance !== undefined
? Math.max(0.0, 1.0 - neighbor.distance)
: undefined;
return {
id: neighbor.datapoint.datapointId,
payload,
score,
};
});
}
async get(vectorId: string): Promise<VectorStoreResult | null> {
if (!this.config.vectorSearchApiEndpoint) {
throw new Error("vectorSearchApiEndpoint is required for get operation");
}
await this.initialize();
const request = {
indexEndpoint: this.indexEndpointPath,
deployedIndexId: this.config.deploymentIndexId,
queries: [
{
datapoint: {
datapointId: vectorId,
},
neighborCount: 1,
},
],
returnFullDatapoint: true,
};
const [response] = await this.matchClient.findNeighbors(request);View on GitHub (pinned to 001c235229)
Solutions
- Set vectorSearchApiEndpoint in the Vertex AI Vector Search config before calling get.
- Deploy the index endpoint and use its endpoint domain as vectorSearchApiEndpoint.
When it happens
Trigger: Thrown at mem0-ts/src/oss/src/vector_stores/vertex_ai_vector_search.ts:204 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of mem0ai/mem0@001c235229 (2026-08-15).
Data as JSON: /api/errors/3be1c335f8a0749d.
Report an issue: GitHub.