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

Improved fog node visibility and transparency on the client #89

Open
1 task done
philippzagar opened this issue Dec 21, 2024 · 0 comments
Open
1 task done

Improved fog node visibility and transparency on the client #89

philippzagar opened this issue Dec 21, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@philippzagar
Copy link
Member

Problem

SpeziLLM implements a fog layer to dynamically discover fog nodes within the local network that host LLM execution environments. It then dispatches LLM inference requests to these nodes and streams the responses back to the SpeziLLM client, such as an iPhone.
The discovery and selection of fog nodes happens rather seamlessly as the SpeziLLM client app uses mDNS to discover the existing resources in the network and then connects to an arbitrary one.

However, at the same time, there is limited observability / transparency into how fog discovery and selection are performed. Currently, this process operates in a pretty much black-box manner, with either successful inference dispatches or an error.

Solution

In order to improve the transparency into the fog node discovery and selection, SpeziLLM should provide information about the currently connected node, the connection status, and the ability to switch the connection to other nodes.
As SpeziLLM mostly uses a conversational interface (chat-based) from SpeziChat for interacting with the model's responses, one might need to improve the flexibility of the the SpeziChat ChatView in order to enable these visibility features.
An easy observability implementation without adjusting the ChatView can be done by using the Views toolbar in order to provide users with buttons that trigger the respective observability Views as sheets or other form of display.

To enhance transparency in fog node discovery and selection, SpeziLLM should display details about the currently connected node, the connection status, and provide the ability to switch connections between nodes. Since SpeziLLM primarily uses the chat-based interface from SpeziChat for interacting with model responses, the ChatView may need to be made more flexible to incorporate these visibility features. Alternatively, a simpler observability implementation could use the Views toolbar to add buttons that trigger the relevant observability Views as sheets or other display mechanisms.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines
@philippzagar philippzagar added enhancement New feature or request help wanted Extra attention is needed labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Status: Backlog
Development

No branches or pull requests

1 participant