feat(mem0-ts): add Baidu vector store provider (#5790)

Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai>
This commit is contained in:
Aditya
2026-07-09 23:52:53 +05:30
committed by GitHub
co-authored by kartik-mem0
parent a781800d3f
commit 573b20cec8
9 changed files with 1348 additions and 21 deletions
+8 -3
View File
@@ -138,6 +138,11 @@ jest.mock("../src/vector_stores/qdrant", () => ({
.fn()
.mockImplementation((config) => ({ type: "qdrant", config })),
}));
jest.mock("../src/vector_stores/baidu", () => ({
BaiduDB: jest
.fn()
.mockImplementation((config) => ({ type: "baidu", config })),
}));
jest.mock("../src/vector_stores/redis", () => ({
RedisDB: jest
.fn()
@@ -320,6 +325,7 @@ describe("VectorStoreFactory", () => {
});
test.each([
["baidu"],
["qdrant"],
["redis"],
["valkey"],
@@ -335,9 +341,8 @@ describe("VectorStoreFactory", () => {
["s3_vectors"],
["weaviate"],
])("creates vector store for provider '%s'", (provider) => {
expect(() =>
VectorStoreFactory.create(provider, dummyVSConfig),
).not.toThrow();
const result = VectorStoreFactory.create(provider, dummyVSConfig) as any;
expect(result.config).toBe(dummyVSConfig);
});
test("throws for unsupported provider", () => {