Feature/llm compactor#21
Merged
Merged
Conversation
Add llm.ts module that uses DProxyClient from @dtoolkit/sdk to make LLM calls without coupling to any specific provider. Config section (llm.dproxyUrl, dproxyToken, provider, model) added to schema, configure wizard, status, and start banner. Calls run clean (no memory/context injection) with configurable defaults for compact Phase 2. Also: silence Fastify request logs (banner covers it), remove duplicate dashboard log.
Add process.ts that reads unprocessed conversation messages, sends them to the LLM via dproxy SDK, extracts entities + facts, and stores them in the database. Integrates into compact as a new 'process' step that runs before dedup and tiers. - CLI: --process flag for dbrain compact, detailed dry-run output - Cron: auto-includes process step when LLM is configured - MCP: compact tool accepts 'process' step - REST: POST /compact accepts 'process' step - API: conversations endpoint now returns processed_count - Dashboard: progress bar on conversation cards + processed badges on messages
Init now asks for cron schedule (default 0 3 * * *) and dproxy connection (URL, token, provider, model). Non-interactive mode supports DBRAIN_COMPACT_SCHEDULE, DBRAIN_DPROXY_URL, DBRAIN_DPROXY_TOKEN, DBRAIN_LLM_PROVIDER, DBRAIN_LLM_MODEL env vars.
…n prompt Add delete/merge modal to entity cards and detail view — when deleting an entity with facts, choose another entity to absorb them. DELETE /entities/:id?mergeInto=<targetId> moves facts before archiving. Also: stricter entity extraction rules in process prompt (no minor mentions, no sensitive data), fix api() sending Content-Type on bodyless requests (Fastify 400).
Accent-insensitive search: "ivan" now matches "Iván", "cafe" matches "café". Migration v3 rebuilds the FTS index for existing brains.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.