feat(llm): Implement experimental chat feature#28
Open
rsthornton wants to merge 1 commit intomainfrom
Open
Conversation
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.
Description:
This is an experimental, exploratory pull request to establish a foundational architecture for deep LLM integration within BERT. The initial implementation is a proof-of-concept chat interface, designed to prove out the core technical components and provide a launchpad for more advanced, generative features.
This PR is intended for review and discussion and should not be merged into
main.Architectural Overview
The implementation is split into three main parts:
Tauri Backend Service (
src-tauri/src/chat_service.rs): A Rust-based service that runs only in the desktop environment.LLMProviderto handle different backends (Ollama, OpenAI, etc.).local-llm,cloud-api) for different compile-time builds.Mutex.Leptos Frontend Component (
src/leptos_app/components/chat.rs): A self-contained UI component providing a chat-based user interface.Tauri Command Bridge (
src-tauri/src/lib.rs): Correctly registers the backend commands, making them available to the Leptos frontend.Vision & Future Possibilities: Generative System Modeling
While the current proof-of-concept is a chat interface, the true power of this foundation is its potential as a generative interface for system modeling. The architecture is designed to be extended to support more complex interactions, such as:
This branch provides the core building blocks to begin exploring these exciting possibilities.
Key Decisions & Implementation Details
Open Questions & Request for Feedback
This prototype raises several questions that would benefit from senior review: