diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b5a335..da33dde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- [2024-10-15] [Remove user filter](https://github.com/RubricLab/memory/commit/a879c56559e8cbbd82b317ed53d8c49cf0aab98d) - [2024-10-15] [Parallelize embedding, upsertion, and update for perf](https://github.com/RubricLab/memory/commit/38f574d2ba7c00f74f9a97a8e21e05315b47f118) - [2024-10-15] [Clean up](https://github.com/RubricLab/memory/commit/0d5f66305ae9c973f7667576b8b7a966c67acbd7) - [2024-10-15] [Require userId in getAll](https://github.com/RubricLab/memory/commit/17a1f03ce3817a9aed9391380ff340db15214046) diff --git a/package.json b/package.json index 13e4204..a0cc3f7 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@rubriclab/memory", "module": "src/index.ts", "main": "src/index.ts", - "version": "0.0.25", + "version": "0.0.26", "private": false, "type": "module", "devDependencies": { diff --git a/src/index.ts b/src/index.ts index 93f5bc3..3e130c4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,7 +10,7 @@ import { import { generateObject } from 'ai' import chalk from 'chalk' import { z } from 'zod' -import { type Database, type LLM, Tag } from './types' +import type { Database, LLM } from './types' import { clean } from './utils/string' import { uid } from './utils/uid' @@ -188,7 +188,7 @@ export class Memory { const uniqueTags = [...new Set(tags)] const similarTagSearchRes = await Promise.all(uniqueTags.map(tag => this.search(tag, { userId }))) - const similarTags = similarTagSearchRes.flat().filter(s => s.body !== Tag.User) + const similarTags = similarTagSearchRes.flat() console.log(`search completed: ${(performance.now() - start).toFixed(2)}ms`)