Commit Graph

113 Commits

Author SHA1 Message Date
Bo26fhmC5M
2d455840a4 feat: add localization for HypaV3 settings and modal 2025-02-08 02:17:35 +09:00
Bo26fhmC5M
2fa11ebbe4 fix: add length check before summarization in HypaV3 2025-02-07 23:31:41 +09:00
Bo26fhmC5M
6d79f45d32 feat: add doNotSummarizeUserChat option in HypaV3
- Add doNotSummarizeUserChat option to exclude user messages from summarization
- Add early return logic to prevent unnecessary similarity checks when summaries are empty
2025-02-07 21:08:50 +09:00
Bo26fhmC5M
3c62317f3a feat: add lastSelectedSummaries property to store selected memory indices 2025-01-17 00:17:12 +09:00
Bo26fhmC5M
6a13b33103 refactor: extract repeated summarization logic into retryableSummarize function 2025-01-16 23:36:32 +09:00
Bo26fhmC5M
fac11bfe67 fix: improve HypaV3 logging 2025-01-16 22:40:08 +09:00
Bo26fhmC5M
3e234dcb15 feat: add dual-action translation (cached/regenerate) in HypaV3 modal
Implements shift+click (desktop) and double tap (mobile) for regenerating translations while maintaining regular click/tap for cached translations.
2025-01-15 13:45:34 +09:00
Bo26fhmC5M
a10a2c5502 refactor: extract HypaV3 modal into separate component 2025-01-14 13:01:14 +09:00
Bo26fhmC5M
f3c6278d21 feat: add important button in HypaV3 Data modal 2025-01-13 23:30:18 +09:00
Bo26fhmC5M
4176a647a5 fix: restore undefined value from null after importing hypaDataV3 2025-01-13 19:31:24 +09:00
Bo26fhmC5M
a1158ebdb1 fix: adjust memory selection order 2025-01-13 14:09:18 +09:00
Bo26fhmC5M
cfdd5d6bf5 fix: resolve summarize function issues with instruct35 2025-01-13 13:30:10 +09:00
Bo26fhmC5M
04e640a791 refactor: improve array conversion and sorting syntax 2025-01-13 13:02:22 +09:00
Bo26fhmC5M
ab7a2aa499 feat: add resummarize button to HypaV3 Data modal 2025-01-12 23:32:20 +09:00
Bo26fhmC5M
f08c31612b fix: prevent over-summarization and improve logging 2025-01-12 17:15:11 +09:00
Bo26fhmC5M
6e49970b76 fix: correct targetTokens calculation in summarization and improve logging 2025-01-12 14:49:01 +09:00
Bo26fhmC5M
85bdf1d544 fix: improve memory token tracking and logging 2025-01-12 13:17:56 +09:00
Bo26fhmC5M
50361d7aa2 feat: Implement HypaV3 ratio-based memory 2025-01-12 11:05:18 +09:00
Bo26fhmC5M
7c1faee6f4 fix: Fix message handling and summarization in HypaV2
- Add clear error messages when summarization is not possible
- Fix message order issues caused by lastTwoChats logic
- Skip [Start a new chat] and empty messages during summarization
2025-01-08 20:45:19 +09:00
Kwaroran
c0e1311568 Add branches 2025-01-06 00:24:03 +09:00
Bo26fhmC5M
0317a941f1 fix: token calculation for HypaV2 2025-01-02 20:52:37 +09:00
Bo26fhmC5M
2b92582df4 fix: resolve chatMemos serialization issue in HypaV2Data 2025-01-02 18:47:16 +09:00
LightningHyperBlaze45654
d2042116aa Fix: Token counting fix 2024-12-31 21:52:13 -08:00
LightningHyperBlaze45654
e51ec6c739 bugfix(read desc)
need to check if the token count is still bugged.
2024-12-26 23:53:05 -08:00
LightningHyperBlaze45654
4ddb932237 add: convert previous version's hypaV2Data 2024-12-20 23:38:40 -08:00
LightningHyperBlaze45654
69f44c03c6 Merge remote-tracking branch 'upstream/main' 2024-12-08 20:08:25 -08:00
LightningHyperBlaze45654
0c51e898f9 fix: bug resolved 2024-12-08 17:24:46 -08:00
LightningHyperBlaze45654
d94581a067 add: unknown bug logging 2024-12-08 10:37:38 -08:00
HyperBlaze
3d3e4dd6a1 refactor: logging changes
not so much but just in case:
2024-12-06 20:20:39 -08:00
HyperBlaze
f652400a1b Merge branch 'main' of https://github.com/LightningHyperBlaze45654/RisuAI 2024-12-06 09:35:50 -08:00
LightningHyperBlaze45654
56646809a1 add logging 2024-12-06 08:49:00 -08:00
kwaroran
909e9635d2 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-12-07 00:58:13 +09:00
kwaroran
e0f6c58540 Refactor HypaProcesser instantiation to remove hardcoded model name and add models and others 2024-12-07 00:58:09 +09:00
LightningHyperBlaze45654
e4e63dc237 force pushing desktop updates
add log soon
2024-12-05 16:09:06 -08:00
HyperBlaze
b283b4a126 fix: index issues
forgot to commit on my pc, so doing it on laptop
2024-12-05 12:21:58 -08:00
HyperBlaze
ea6d7dada1 bugfix/deleted feature restored
Resolved bug when entire chat context is deleted and hypaV2Data becomes empty, throwing a undefined index error. Also changed it to typescript index.

Hopefully resolved issue where same chat is summarized over and over again by adding another field to mainChunks.
2024-12-04 22:10:16 -08:00
LightningHyperBlaze45654
b8bb2330cc feat: validate hypav2 data
# Changelist:
## 1. Types
### MainChunks
Added id(int), and chatMemos(Set<string>)
Id: incremental int starting from 0
chatMemos: A set of UUID, containing which chat has been summarized in it.
### Chunks
mainChunkID: A connection of which mainChunk it has been split from
text: the split text data

## 2. Features
### CleanInvalidChunks
Called every time when chat is updated and Hypamemory is used.

Gets all the memo(UUID)s of current chats, and creates a set.
Then checks if each mainChunk's chatMemos set is subset of the enitre memo set. If not, the summarized part's chat is deleted/edited. The mainChunk is filtered out.
Concurrently, the chunks that are split from that mainChunk is also deleted.
2024-12-03 23:28:18 -08:00
Bo26fhmC5M
ecc2817a7b Add memo to detect supaMemory model requests in the plugin 2024-12-04 13:46:35 +09:00
Bo26fhmC5M
dbd7485c50 Fix hypav2 issue where the 'search_document: ' string is not truncated correctly. 2024-12-03 22:12:53 +09:00
LightningHyperBlaze45654
46502e762b add: gut updates
are you ready?
I hate school
2024-12-01 22:15:19 -08:00
LightningHyperBlaze45654
4ea365a141 refactor: logging 2024-12-01 19:31:23 -08:00
LightningHyperBlaze45654
83b79fa48d fix: chunks not being filtered correctly
need to check if chat.memo is actually a unique uuid4/uuid5 or else it will be broken
2024-12-01 17:40:21 -08:00
LightningHyperBlaze45654
60d4e33893 feat: add validation
Also revoked potentially problematic feature(add hypav2data chunk)
TODO:
1. On mid-context editing, currently that is not considered as deletion. Do have optional editedChatIndex to latter dive in more.
2. re-roll mainChunks(re-summarization) functionalities added, but not able to access it.
2024-12-01 13:00:00 -08:00
LightningHyperBlaze45654
68f816bda9 Merge branch 'main' of https://github.com/LightningHyperBlaze45654/RisuAI 2024-11-29 20:33:11 -08:00
Kwaroran
981ec3921e Add plenty of features 2024-11-27 06:01:42 +09:00
kwaroran
efbda2333d Change saving 2024-11-02 01:46:21 +09:00
kwaroran
ffa6308ca3 change globalApi path 2024-10-26 20:40:40 +09:00
kwaroran
e255199fcc Change setDatabase and getDatabase to accessing dbState 2024-10-25 19:11:41 +09:00
kwaroran
0f6246bef6 fix structuredclone 2024-10-25 18:11:00 +09:00
kwaroran
b3fddb814e Migrate all DataBase to DBState 2024-10-24 01:59:57 +09:00