Skip to content

Commit 32d496a

Browse files
Fallenhhhimself65
andauthored
implementing long term memory with sqlite-vec (#10)
Co-authored-by: Alex Yang <[email protected]>
1 parent f314505 commit 32d496a

File tree

4 files changed

+169
-91
lines changed

4 files changed

+169
-91
lines changed

configs/config.yaml-template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ plugins:
5151
file-system:
5252
python:
5353
long-term-memory:
54+
base_url: https://api.openai.com/v1
55+
api_key: sk-proj-your-openai-api-key
56+
vector_model: text-embedding-3-small
57+
dimensions: 100
58+
max_query_results: 3
59+
persist_db: true
60+
db_file: configs/long-term-memory.db
5461
discord:
5562
bot_token: your-discord-bot-token
5663
allowed_channel_ids:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"openai": "^4.78.1",
4242
"playwright": "^1.51.1",
4343
"python-shell": "^5.0.0",
44+
"sqlite-vec": "0.1.7-alpha.2",
4445
"winston": "^3.17.0",
4546
"winston-transport": "^4.9.0",
4647
"ws": "^8.18.0",
@@ -53,7 +54,7 @@
5354
"@types/html-to-text": "^9.0.4",
5455
"@types/jsdom": "^21.1.7",
5556
"@types/mime-types": "^2.1.4",
56-
"@types/node": "^22.10.5",
57+
"@types/node": "^22.14.1",
5758
"@types/node-telegram-bot-api": "^0.64.7",
5859
"@types/ws": "^8.5.14",
5960
"tsx": "^4.19.3",

pnpm-lock.yaml

Lines changed: 69 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)