holoviz-topics / panel-chat-examples

Examples of Chat Bots using Panels chat features: Traditional, LLMs, AI Agents, LangChain, OpenAI etc
https://holoviz-topics.github.io/panel-chat-examples/
MIT License
105 stars 31 forks source link

Add ChatInput and Status components #69

Closed MarcSkovMadsen closed 10 months ago

MarcSkovMadsen commented 10 months ago

As discussed in https://github.com/holoviz/panel/pull/5670, moves the ChatInput and Status components to panel-chat-examples where they can live until Panel gets similar built in components.

MarcSkovMadsen commented 10 months ago

The two failing tests are due to mistral_and_llama png and mo4. I can see that it tries to merge all the files related to widget -> chat change. I don't think I've caused that. Do you know why it looks like that @ahuang11 ?

ahuang11 commented 10 months ago

Thanks for reporting that; it should be fixed in https://github.com/holoviz-topics/panel-chat-examples/pull/70

ahuang11 commented 10 months ago

These are probably very useful chat components, and on second thought, I suppose if we have it here, it wouldn't have as much visibility as in the official Panel reference gallery. Also, with these components, I suppose this repo shouldn't be called panel-chat-examples, and lastly, it's not easily pip installable since this package isn't published to PyPi.

However, I suppose they could first live in this repo if you'd like, but once they are here, I'd like to see a PR made to Panel.

MarcSkovMadsen commented 10 months ago

Agree. Right now they are here panel-chat-examples provide a temporary home. We can iterate on them here and get some community feedback. When/ if more is done they can be moved to panel or another panel-xyz package.

codecov-commenter commented 10 months ago

Codecov Report

Attention: 33 lines in your changes are missing coverage. Please review.

Comparison is base (13f7e6e) 98.41% compared to head (63787a1) 78.88%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #69 +/- ## =========================================== - Coverage 98.41% 78.88% -19.54% =========================================== Files 2 5 +3 Lines 63 161 +98 =========================================== + Hits 62 127 +65 - Misses 1 34 +33 ``` | [Files](https://app.codecov.io/gh/holoviz-topics/panel-chat-examples/pull/69?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyviz-topics) | Coverage Δ | | |---|---|---| | [panel\_chat\_examples/components/\_\_init\_\_.py](https://app.codecov.io/gh/holoviz-topics/panel-chat-examples/pull/69?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyviz-topics#diff-cGFuZWxfY2hhdF9leGFtcGxlcy9jb21wb25lbnRzL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | | [panel\_chat\_examples/components/chat\_input.py](https://app.codecov.io/gh/holoviz-topics/panel-chat-examples/pull/69?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyviz-topics#diff-cGFuZWxfY2hhdF9leGFtcGxlcy9jb21wb25lbnRzL2NoYXRfaW5wdXQucHk=) | `90.00% <90.00%> (ø)` | | | [panel\_chat\_examples/components/status.py](https://app.codecov.io/gh/holoviz-topics/panel-chat-examples/pull/69?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyviz-topics#diff-cGFuZWxfY2hhdF9leGFtcGxlcy9jb21wb25lbnRzL3N0YXR1cy5weQ==) | `58.66% <58.66%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

MarcSkovMadsen commented 10 months ago

This PR also includes changes to the autogenerated files due to #71.

@ahuang11 . I believe this should be ready to merge. Otherwise let me know what to do. Thanks.