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

Demo for using natural language to generate nmstate YAML for linux bridge. #2583

Open
cathay4t opened this issue Mar 7, 2024 · 8 comments · May be fixed by #2623
Open

Demo for using natural language to generate nmstate YAML for linux bridge. #2583

cathay4t opened this issue Mar 7, 2024 · 8 comments · May be fixed by #2623
Assignees

Comments

@cathay4t
Copy link
Member

cathay4t commented Mar 7, 2024

Input: Please create a linux bridge br0 using eth1 and eth2.

Output:

---
interfaces:
  - name: br0
    type: linux-bridge
    state: up
    bridge:
      ports:
        - name: eth1
        - name: eth2

Please treat it as natural language parsing, not regex string parsing on input.

@ayushichoudhary-19
Copy link

ayushichoudhary-19 commented Mar 7, 2024

I would like to work on this issue. Please assign it to me! @cathay4t

@kemsguy7
Copy link

kemsguy7 commented Mar 8, 2024

@cathay4t you sent this to me on slack , kindly assign it to me, thanks

@cathay4t
Copy link
Member Author

cathay4t commented Mar 8, 2024

Sure. Sorry for double assignments. But I guess these is no correct solution to this, maybe we can learn from other's approach.

Please enjoy hacking and let me know if you need anything.

@jona42-ui
Copy link
Contributor

@cathay4t what algorithms do you anticipate utilizing to handle the natural language inputs, ensure accuracy in understanding user intents and basically to analyze historical network state changes and user interactions.

i am asking such that I am not offside, coz I suppose you consider security and privacy

@jona42-ui
Copy link
Contributor

@cathay4t @ffmancera are you able to kindly give me some review here of some small demo;

https://github.com/jona42-ui/nmstate_nlp_module

@cathay4t
Copy link
Member Author

cathay4t commented Mar 19, 2024

I am also new to this AI/ML/NLP stuff.

But base on my google search, with https://github.com/guillaume-be/rust-bert , I can ask rust-bert a question like what's the name of the bridge with user's input as context. Once NLP reply br0, I can ask about ports of it. With enough information collected, I can generate a nmstate::NetworkState and use serde_yaml to print it out.

@jona42-ui
Copy link
Contributor

I am also new to this AI/ML/NLP stuff.

But base on my google search, with https://github.com/guillaume-be/rust-bert , I can ask rust-bert a question like what's the name of the bridge with user's input as context. Once NLP reply br0, I can ask about ports of it. With enough information collected, I can generate a nmstate::NetworkState and use serde_yaml to print it out.

this is super helpful
thanks @cathay4t for the useful pointers

@tyll
Copy link
Member

tyll commented Apr 5, 2024

I am also new to this AI/ML/NLP stuff.

But base on my google search, with guillaume-be/rust-bert , I can ask rust-bert a question like what's the name of the bridge with user's input as context. Once NLP reply br0, I can ask about ports of it. With enough information collected, I can generate a nmstate::NetworkState and use serde_yaml to print it out.

This is an interesting approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants