-
Notifications
You must be signed in to change notification settings - Fork 19
feat(chat-messages): add citation popover #2126
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
Open
robertwilde
wants to merge
2
commits into
main
Choose a base branch
from
feat/ai/source-chip
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...-chat-messages--si-ai-message--popover-element-examples-chromium-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...chat-messages--si-ai-message--popover-element-examples-chromium-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions
36
playwright/snapshots/static.spec.ts-snapshots/si-chat-messages--si-ai-message--popover.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| - paragraph: | ||
| - text: Here's a | ||
| - strong: simple response | ||
| - text: with basic formatting. | ||
| - paragraph: | ||
| - text: You can use | ||
| - code: inline code | ||
| - text: "and create lists:" | ||
| - list: | ||
| - listitem: First item | ||
| - listitem: Second item | ||
| - group: | ||
| - button "Good response" | ||
| - button "Bad response" | ||
| - button "Copy response" | ||
| - button "More actions" | ||
| - text: Neural networks are composed of layers of interconnected nodes that process information in parallel, enabling the model to learn complex patterns from large datasets. | ||
| - group: | ||
| - link "Deep Learning – Ian Goodfellow et al.": | ||
| - /url: https://examples.org/deeplearningbook | ||
| - text: "" | ||
| - text: The training process adjusts the weights of these connections to minimize prediction error using backpropagation. | ||
| - group: | ||
| - link "Backpropagation Algorithm – Stanford CS231n": | ||
| - /url: https://examples.org/cs231n | ||
| - text: "" | ||
| - group: | ||
| - button "Good response" | ||
| - button "Bad response" | ||
| - button "Copy response" | ||
| - button "More actions" | ||
| - dialog "Deep Learning – Ian Goodfellow et al.": | ||
| - text: "" | ||
| - paragraph: Neural networks are universal function approximators composed of alternating linear transformations and non-linear activations, trained end-to-end via gradient descent. | ||
| - link "View source": | ||
| - /url: https://examples.org/deeplearningbook |
4 changes: 2 additions & 2 deletions
4
...pshots/si-chat-messages--si-ai-message-element-examples-chromium-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...shots/si-chat-messages--si-ai-message-element-examples-chromium-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...t-messages--si-chat-container--popover-element-examples-chromium-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...-messages--si-chat-container--popover-element-examples-chromium-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions
51
...ight/snapshots/static.spec.ts-snapshots/si-chat-messages--si-chat-container--popover.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| - group: | ||
| - button "data-analysis.py" | ||
| - group: | ||
| - button "dataset.csv" | ||
| - paragraph: Can you help me analyze these files? | ||
| - paragraph: I'm having trouble understanding the data structure and need assistance with the implementation. | ||
| - group: | ||
| - button "Export message" | ||
| - text: I'd be happy to help! Data processing pipelines typically follow a structured approach. | ||
| - group: | ||
| - link "Data Pipeline Design Patterns": | ||
| - /url: https://examples.org/articles/data-pipeline.html | ||
| - text: "" | ||
| - text: Let me examine your files and provide detailed guidance. | ||
| - group: | ||
| - button "Add to list" | ||
| - button "Export response" | ||
| - button "Retry response" | ||
| - button "More actions" | ||
| - paragraph: Perfect! What should I focus on first | ||
| - paragraph: I also want to make sure the performance is optimized for large datasets since this will be used in production with potentially millions of rows? | ||
| - group: | ||
| - button "Export message" | ||
| - text: Great question! When analyzing large datasets, it's crucial to focus on vectorized operations and avoid row-by-row iteration. | ||
| - group: | ||
| - link "Pandas Performance Guide": | ||
| - /url: https://examples.org/docs/user_guide/enhancingperf.html | ||
| - group: | ||
| - button "Add to list" | ||
| - button "Export response" | ||
| - button "Retry response" | ||
| - button "More actions" | ||
| - alert: Info AI responses are for demonstration purposes. | ||
| - group: | ||
| - text: requirements.pdf | ||
| - button "Remove attachment requirements.pdf" | ||
| - group: | ||
| - text: mockup.png | ||
| - button "Remove attachment mockup.png" | ||
| - textbox "Chat message input": | ||
| - /placeholder: Enter a command, question or topic... | ||
| - group: | ||
| - button "More actions" | ||
| - button "Show Welcome Screen" | ||
| - button "Send" | ||
| - text: The content is AI generated. Always verify the information for accuracy. | ||
| - dialog "Data Pipeline Design Patterns": | ||
| - text: "" | ||
| - paragraph: Pipelines can be structured as linear chains or branching graphs. Each stage transforms data independently, enabling testability and reuse. | ||
| - link "View source": | ||
| - /url: https://examples.org/articles/data-pipeline.html |
4 changes: 2 additions & 2 deletions
4
...ts/si-chat-messages--si-chat-container-element-examples-chromium-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...s/si-chat-messages--si-chat-container-element-examples-chromium-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 16 additions & 1 deletion
17
projects/element-ng/chat-messages/si-ai-message.component.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.