TypeScript SDK v3 pipeline (full parity with Python): - Single-pass additive extraction with ADDITIVE_EXTRACTION_PROMPT - Hybrid search (semantic + BM25 + entity boost) with additive scoring - 8-phase batch pipeline (batch embed, persist, entity linking) - New utils: scoring.ts, lemmatization.ts (natural), entity_extraction.ts (compromise) - keywordSearch() on 8 vector stores (3 full: PGVector, Memory, Azure AI Search) - Message persistence in SQLiteManager (rolling window of 10) - Entity store as second vector collection - MAX_BATCH=100 chunking guard on OpenAI/Azure embedBatch - Updated default LLM model to gpt-4.1-nano-2025-04-14 - compromise + natural added as peer dependencies Graph store removal (Python + TypeScript): - Removed Neo4j, Memgraph, Kuzu, Neptune, Apache AGE integrations - Deleted 18 graph-related files across both SDKs - Removed GraphStoreFactory, GraphStoreConfig, graph_store config field - Removed "relations" key from all API responses - Removed graph optional dependency group from pyproject.toml - Removed neo4j-driver from TS peerDependencies - Simplified add/search/delete/reset (no more parallel graph operations) Client SDK v3 API migration: - add() endpoint: /v1/memories/ -> /v3/memories/ (async response) - search() endpoint: /v2/memories/search/ -> /v3/memories/search/ - Removed output_format injection and v1.1 unwrapping logic - Applied to both Python (sync + async) and TypeScript clients Review feedback fixes: - Removed deprecated custom_update_memory_prompt from MemoryConfig - Added MAX_BATCH=100 chunking to Python + TS embed_batch - Moved all inline imports to top level in main.py - Cleaned up GraphStoreError dead code from exceptions.py Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
144 lines
3.4 KiB
JSON
144 lines
3.4 KiB
JSON
{
|
|
"name": "mem0ai",
|
|
"version": "2.4.6",
|
|
"description": "The Memory Layer For Your AI Apps",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.ts",
|
|
"typesVersions": {
|
|
"*": {
|
|
"*": [
|
|
"./dist/index.d.ts"
|
|
],
|
|
"oss": [
|
|
"./dist/oss/index.d.ts"
|
|
]
|
|
}
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"require": "./dist/index.js",
|
|
"import": "./dist/index.mjs"
|
|
},
|
|
"./oss": {
|
|
"types": "./dist/oss/index.d.ts",
|
|
"require": "./dist/oss/index.js",
|
|
"import": "./dist/oss/index.mjs"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"clean": "rimraf dist",
|
|
"build": "npm run clean && npx prettier --check . && npx tsup",
|
|
"dev": "npx nodemon",
|
|
"start": "pnpm run example memory",
|
|
"example": "ts-node src/oss/examples/vector-stores/index.ts",
|
|
"test": "jest",
|
|
"test:ci": "jest --coverage --ci",
|
|
"test:unit": "jest --coverage --ci --testPathIgnorePatterns='/node_modules/' '/dist/' 'integration'",
|
|
"test:integration": "jest --config jest.integration.config.js --forceExit",
|
|
"test:ts": "jest --config jest.config.js",
|
|
"test:watch": "jest --config jest.config.js --watch",
|
|
"format": "npm run clean && prettier --write .",
|
|
"format:check": "npm run clean && prettier --check ."
|
|
},
|
|
"tsup": {
|
|
"entry": [
|
|
"src/index.ts"
|
|
],
|
|
"format": [
|
|
"cjs",
|
|
"esm"
|
|
],
|
|
"dts": {
|
|
"resolve": true
|
|
},
|
|
"splitting": false,
|
|
"sourcemap": true,
|
|
"clean": true,
|
|
"treeshake": true,
|
|
"minify": false,
|
|
"external": [
|
|
"@mem0/community"
|
|
],
|
|
"noExternal": [
|
|
"!src/community/**"
|
|
]
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/mem0ai/mem0",
|
|
"directory": "mem0-ts"
|
|
},
|
|
"keywords": [
|
|
"mem0",
|
|
"api",
|
|
"client",
|
|
"memory",
|
|
"llm",
|
|
"long-term-memory",
|
|
"ai"
|
|
],
|
|
"author": "Deshraj Yadav",
|
|
"license": "Apache-2.0",
|
|
"devDependencies": {
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"@types/node": "^22.7.6",
|
|
"@types/uuid": "^9.0.8",
|
|
"dotenv": "^16.4.5",
|
|
"fix-tsup-cjs": "^1.2.0",
|
|
"jest": "^29.7.0",
|
|
"nodemon": "^3.0.1",
|
|
"prettier": "^3.5.2",
|
|
"rimraf": "^5.0.5",
|
|
"ts-jest": "^29.2.6",
|
|
"ts-node": "^10.9.2",
|
|
"tsup": "^8.3.0",
|
|
"typescript": "5.5.4"
|
|
},
|
|
"dependencies": {
|
|
"axios": "1.13.6",
|
|
"openai": "^4.93.0",
|
|
"uuid": "9.0.1",
|
|
"zod": "^3.24.1"
|
|
},
|
|
"peerDependencies": {
|
|
"@anthropic-ai/sdk": "^0.40.1",
|
|
"@azure/identity": "^4.0.0",
|
|
"@azure/search-documents": "^12.0.0",
|
|
"@cloudflare/workers-types": "^4.20250504.0",
|
|
"@google/genai": "^1.2.0",
|
|
"@langchain/core": "^1.0.0",
|
|
"@mistralai/mistralai": "^1.5.2",
|
|
"@qdrant/js-client-rest": "1.13.0",
|
|
"@supabase/supabase-js": "^2.49.1",
|
|
"@types/jest": "29.5.14",
|
|
"@types/pg": "8.11.0",
|
|
"better-sqlite3": "^12.6.2",
|
|
"cloudflare": "^4.2.0",
|
|
"groq-sdk": "0.3.0",
|
|
|
|
"ollama": "^0.5.14",
|
|
"pg": "8.11.3",
|
|
"redis": "^4.6.13",
|
|
"compromise": "^14.0.0",
|
|
"natural": "^8.0.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"packageManager": "pnpm@10.5.2+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b",
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"esbuild",
|
|
"better-sqlite3"
|
|
]
|
|
}
|
|
}
|