Skip to content

Mvr/#15/conversation handler#24

Open
MatthiasvonRakowski wants to merge 36 commits into
devfrom
mvr/#15/conversation_handler
Open

Mvr/#15/conversation handler#24
MatthiasvonRakowski wants to merge 36 commits into
devfrom
mvr/#15/conversation_handler

Conversation

@MatthiasvonRakowski
Copy link
Copy Markdown
Contributor

To review to have a conversation not long term and no save

…rent pipeline with a RAG + Embedding + LLM (ollama). Should work with vLLM but not tested
…ith id and module with handle. Make some refacto : user_id -> _user_id and handle -> _handle
…th Ollama for other provider we need to change the code.
Copy link
Copy Markdown
Contributor

@Popochounet Popochounet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Popochounet Popochounet linked an issue May 24, 2026 that may be closed by this pull request
4 tasks
Comment thread src/modules/rag/rag.py Outdated
result: RAGResult = await self._handle.process.remote(query)
return result

def update_preferences(self, new_preferences: dict):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a remove si deprecated

Comment thread src/core/module.py Outdated

class Module:
input_type: str
input_type: Optional[str]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heu tu peux remove le Optional ? j'imagine que c'est un merge conflict ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry c'est ma faute

Comment thread src/core/user_config.py
return config_dir


def load_user_id(path: str | None = None) -> str | None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je trouve ca plus logique de le laisser dans la classe Client

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pas d accord

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh je vois ce que tu veux dire

Pour moi le client c'est une instance et le user c'est genre la mémoire etc.

donc un user peut avoir plusieur client similaire en meme temps

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bah plusieurs client ont la meme url de HuRI, pourtant on met huri-url dans le config ?

Comment thread src/core/user_config.py
return None


def save_user_id(_user_id: str, path: str | None = None):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cette fonction aussi

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same qu au dessus

Comment thread src/core/client.py
print("Connected to server")

self.config.user_id = self._load_user_id()
self.config.user_id = get_or_create_user_id(self.user_id_file)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok je pensais que tu voulais mettre le user_id_file dans le config/client.yaml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

peut etre mettre le dossier service dans src, plutot que dans modules ?

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.

Conversation Handler

2 participants