jorge-menjivar / unsaged

Open source chat kit engineered for seamless interaction with AI models.

Home Page:https://unsaged.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Corrupted database after attempting to import from Chabotui.com

johnbrownlow opened this issue · comments

I imported a json that I had exported from chatbotui.com, but the app now throws this error when run

Screenshot 2023-07-12 at 7 37 35 AM

(This is now a showstopper as I don't know how to fix it without rebuilding the whole thing including the database)

(I thought I had solved this but fresh install and fresh database resulted in the same error)

@johnbrownlow check this branch: https://github.com/jorge-menjivar/unSAGED/tree/import-fix

Let me know if this solves the issues

Yes! That solved it. Thank you!

I notice that it doesn't import system prompts. Is this because ChatbotUI doesn't export them?

I notice that it doesn't import system prompts. Is this because ChatbotUI doesn't export them?

Chatbot UI doesn’t have support for system prompts at all. Their “prompts”, are imported as message templates.

There are some caveats to have in mind as well. Importing the same file twice will result in duplicate messages because chatbot UI doesn’t include message IDs or timestamps, so there is no easy way of telling which messages have already been imported. I guess we could go message by message comparing the content to find the difference and make a guess what messages the user would like to import, but that’s out scope for now.

It works fine for me right now as I'm just using it to transition. Cheers!