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

epic: Shift threads and messages back to Jan #4866

Open
david-menloai opened this issue Apr 2, 2025 · 1 comment
Open

epic: Shift threads and messages back to Jan #4866

david-menloai opened this issue Apr 2, 2025 · 1 comment
Assignees
Labels
Milestone

Comments

@david-menloai
Copy link
Contributor

david-menloai commented Apr 2, 2025

Shift Threads and Messages from cortex.cpp to Jan - Application Business Layer

Goal

Move threads and messages handling to Jan’s application/business layer, decoupling them from the cortex.cpp server. This will allow different clients (e.g., desktop app, web app, mobile) to handle presentation and storage of thread/message data according to their own needs.

Description

Currently, threads and messages are managed within the cortex.cpp server. This setup couples core data (threads and messages) too tightly with a specific backend implementation, which limits flexibility and reusability across different client applications.

Tasks

  • Define a shared interface/contract for threads and messages in the business layer
  • Move thread/message persistence and state management into Jan
  • Update integration between Jan and cortex.cpp to route only inference/completion data

Benefits:

  • More modular architecture
  • Faster to deliver multiple client apps
  • Simplifies cortex.cpp server to focus solely on inference logic

Impact:

This is a breaking change for client apps currently relying on thread/message data coming from cortex.cpp.

@louis-menlo
Copy link
Contributor

Updated issue description.

@louis-menlo louis-menlo changed the title Conversation move threads and messages task: Shift threads and messages back to Jan Apr 6, 2025
@louis-menlo louis-menlo changed the title task: Shift threads and messages back to Jan epic: Shift threads and messages back to Jan Apr 6, 2025
@louis-menlo louis-menlo added the type: feature request A new feature label Apr 6, 2025
@louis-menlo louis-menlo added this to the v0.5.18 milestone Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Status: Investigating
Development

No branches or pull requests

2 participants