Skip to content

Commit

Permalink
Remove user filter
Browse files Browse the repository at this point in the history
  • Loading branch information
tedspare committed Oct 15, 2024
1 parent 1bccd2c commit 82888de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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`)

Expand Down

0 comments on commit 82888de

Please sign in to comment.