Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Chats from Media DB (BREAKING CHANGE - moved to RAG QA db), Added mindmap viewing, token counts in convos, anki flashcard validation #409

Merged
merged 46 commits into from
Nov 2, 2024

Conversation

rmusser01
Copy link
Owner

Split chats from the Media DB so that chats about media items are now stored in the RAG_QA db.
This allows the media DB to solely contain media items/info about them while the RAG_QA db will store all non-rp chats.
This furthers the idea of isolation between all components for re-usability and plug-n-play.

Added Mindmap viewing in Gradio from PlantUML specification. Generate a spec, copy/paste it in, and you got a mindmap.

Added token counts to conversations, rough approximation (not actually tokenizing) to get an idea of how long your convo is.

Added an Anki flashcard validation(working)/viewing(broken) functionality so that you can validate(?) your deck is good(?)
Plan is to look at implementing generation with genanki and LLMs so that you can be guided through/ask the LLM to help generate a structured output to be able to create anki flashcards that are exportable/reviewable.

Wow. I thought the prior claude was getting worse. This is just a shitpile.
Save + Update + Load works in RAG / 'normal' / Stacked chat UIs
Review of Conversations occurs in the Rag Chat/Search Tab
Workflows needs to be updated as well
@rmusser01 rmusser01 self-assigned this Oct 27, 2024
@rmusser01
Copy link
Owner Author

Won't merge until I have a migration script to make it easy for people who have chats they want to save.

I recognize its a SQLite DB and one could just perform raw queries to extract the data, I want to make it as easy as possible since not all users are that technical.

Backups not properly done yet, need sanity checks to prevent the wrong DB being imported/overwriting the current one.
Ditto for showing available backups.
@rmusser01
Copy link
Owner Author

Need to validate the export/migration script works, besides that this should all be working.
Biggest thing is that you can't make a clean upgrade to this version due to DB Schema changes and deletions. (And that my first attempt at an automatic migration failed).
So with that being said, I've gone ahead and created a migration script that one can run that will migrate the entries in the prior media DB into the new media DB, and export any/all conversations stored in the old Media DB as markdown files.

Need to test it/confirm it works, but once I do, new features!

@rmusser01 rmusser01 merged commit acbe72b into main Nov 2, 2024
3 checks passed
rmusser01 added a commit that referenced this pull request Jan 4, 2025
…S - Merge pull request #409 from rmusser01/dev

ALL PRIOR VERSIONS ARE BROKEN BY THIS MERGE. THIS VERSION INTRODUCES A NEW config.txt FILE WHICH WILL CAUSE BREAKING WHEN USING ANY LLM API CALLS.

Docs, TTS, answer streaming, web search and perplexity clone

Updates:
More Docs (no user guides yet 👎 , but we got some feature documentation! 👍 )
Foundation for TTS, setup a basic pipeline and have the ability/plan to add more TTS APIs/Engines
Have support for streaming of answers in chat in all except the 4-way chat and the One prompt-mutiple, API chat.
Added foundations + actual feature of Web Search, can now do web search + sub searches to answer a query/do research on a topic. UI is a (even more of a temporary) placeholder for now, not too happy with it. But the underlying pipeline is pretty nice, can do a single -> sub/split query through your choice of search provider (Bing, DDG, Google, Brave, SearX, Kagi) and then have the results evaluated for relevancy, collected via page scraping and then summarized for final analysis. Lots of areas for improvement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant