Commit Graph

35 Commits

Author SHA1 Message Date
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
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
b3fddb814e Migrate all DataBase to DBState 2024-10-24 01:59:57 +09:00
kwaroran
2044d9b63b Change DataBase inside svelte to DBState for performance 2024-10-23 23:46:32 +09:00
LightningHyperBlaze45654
a8d52decd0 refactor: few hypa potential issues/bad prompt 2024-09-25 21:19:54 -07:00
LightningHyperBlaze45654
8d883990bb Update hypav2.ts
Now retrieving works as intended
2024-06-18 08:23:57 -07:00
LightningHyperBlaze45654
b17cf1e532 minimal changes on last two chats
hypav2.ts update. last commit.
2024-06-17 23:45:03 -07:00
LightningHyperBlaze45654
e530783eb6 Stable update hypav2.ts
no joke, now really works.
2024-06-17 23:38:48 -07:00
LightningHyperBlaze45654
21f5d61521 Update hypav2.ts
Still so much error :(
2024-06-17 22:33:34 -07:00
HyperBlaze
289fe90027 Update hypav2.ts
fuck chatgpt, today is the last day and I will finish this.
2024-06-17 15:07:07 -07:00
LightningHyperBlaze45654
ff52e8dd37 hypav2.ts update
one final stability check will be required..
2024-06-17 08:21:56 -07:00
LightningHyperBlaze45654
dab52b6a1f updated hypav2.ts
Logic change. Need revise.
2024-06-16 12:41:41 -07:00
LightningHyperBlaze45654
e03e7f9c4b Resolved all buggy issues
why no json? Idk, blame me
2024-06-16 10:28:31 -07:00
LightningHyperBlaze45654
4ef256dcf9 hypav2 working update
Everything works as intended.
when the first chat limit is reached, it succesfully summarize the previous chats according to the chunk size, and then returns the chat with summarized text as a system prompt, with other chats after that summarized point correctly appended.
Automatic sub-chunking also works perfectly.

Tested with sub-model.
2024-06-15 23:34:00 -07:00
HyperBlaze
33bb7a3337 updated hypav2.ts
back to original logic, only model selection is implemented.
Previous issue: the mainChunks object holds list of summarized texts, but for somewhat reason they are deleted after usage, and then re-added again, summarizing same chats.
2024-06-14 17:29:11 -07:00
HyperBlaze
d72c541437 changed mainprompt
made mainprompt only have most recent summarized data, which will be correctly appended on mainChunks[0]
2024-06-13 13:08:43 -07:00
LightningHyperBlaze45654
9e77b46936 Experimental settings updated
regular push for saving
2024-06-12 20:58:30 -07:00
LightningHyperBlaze45654
0e70869b88 Solved hypav2 not implemented as expected
The github isn't updating codebase correctly!!!
2024-06-12 17:00:13 -07:00
LightningHyperBlaze45654
bbf5c7405a punctuation fix, added oai embedding 2024-06-12 07:38:12 -07:00
LightningHyperBlaze45654
5030dd56da hypav2 enhancment 2 2024-06-12 07:11:07 -07:00
LightningHyperBlaze45654
ff1793a123 hypav2 update
incomplete
2024-06-11 21:06:59 -07:00
kwaroran
f822765d95 refactor: Add noMultiGen flag to requestChatDataMain functions 2024-05-27 12:34:07 +09:00
kwaroran
4ad59fa69c feat: Add HypaMemory V2 and SupaMemory descriptions and add hypav2 settings 2024-05-27 12:30:07 +09:00
kwaroran
5b7e66723f feat: add hypav2 button 2024-05-23 07:02:16 +09:00
kwaroran
7a1591bd20 feat: Add hypav2 memory option to OtherBotSettings 2024-05-23 01:52:31 +09:00