[PR #399] [MERGED] feat: integrate llamaindex chat-ui #477

Closed
opened 2026-02-15 20:14:58 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/create-llama/pull/399
Author: @thucpn
Created: 10/28/2024
Status: Merged
Merged: 11/1/2024
Merged by: @marcusschiesser

Base: mainHead: feat/integrate-llamaindex-chat-ui


📝 Commits (10+)

  • 981c561 feat: integrate llamaindex chat-ui
  • f59e13e refactor: add message id and use append function
  • 4f59d61 refactor: useFile from chat-ui
  • 65a2a2b refactor: move code to chat input and section
  • 0ea22d2 keep chat message content as it is
  • d7a143a refactor: use data from context instead of props
  • c30edb2 feat: use markdown from chat-ui
  • 97eac2b fix: keep passing append to avoid re-render when chat suggestion changed
  • 244a4a7 fix: remove dead code
  • 0f2c7a9 refactor: use chat starter questions from chat-ui

📊 Changes

34 files changed (+290 additions, -2019 deletions)

View changed files

.changeset/nice-garlics-repeat.md (+5 -0)
📝 templates/types/streaming/nextjs/app/components/chat-section.tsx (+11 -42)
templates/types/streaming/nextjs/app/components/ui/README-template.md (+0 -1)
templates/types/streaming/nextjs/app/components/ui/chat/chat-actions.tsx (+0 -28)
📝 templates/types/streaming/nextjs/app/components/ui/chat/chat-avatar.tsx (+4 -2)
📝 templates/types/streaming/nextjs/app/components/ui/chat/chat-input.tsx (+52 -115)
templates/types/streaming/nextjs/app/components/ui/chat/chat-message-content.tsx (+30 -0)
templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-agent-events.tsx (+0 -222)
templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-events.tsx (+0 -50)
templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-files.tsx (+0 -13)
templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-image.tsx (+0 -17)
templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-sources.tsx (+0 -173)
templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-suggestedQuestions.tsx (+0 -31)
templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-tools.tsx (+0 -40)
templates/types/streaming/nextjs/app/components/ui/chat/chat-message/codeblock.tsx (+0 -131)
templates/types/streaming/nextjs/app/components/ui/chat/chat-message/index.tsx (+0 -184)
templates/types/streaming/nextjs/app/components/ui/chat/chat-message/markdown.tsx (+0 -172)
📝 templates/types/streaming/nextjs/app/components/ui/chat/chat-messages.tsx (+25 -131)
templates/types/streaming/nextjs/app/components/ui/chat/chat-starter.tsx (+26 -0)
templates/types/streaming/nextjs/app/components/ui/chat/chat.interface.ts (+0 -25)

...and 14 more files

📄 Description

Summary by CodeRabbit

  • New Features

    • Introduced a modular chat interface with a new ChatSectionUI component.
    • Added ChatStarter component for fetching and displaying starter questions.
    • Implemented ToolAnnotations for displaying tool-related annotations in chat messages.
    • Introduced Markdown component for rendering markdown content with media preprocessing.
    • Added CustomChatMessages and CustomChatInput components for enhanced chat functionality.
  • Bug Fixes

    • Simplified error handling across various components for better user feedback.
  • Refactor

    • Streamlined components by removing unnecessary props and integrating hooks for state management.
    • Renamed and restructured several components for improved clarity and modularity.
    • Removed deprecated components to simplify the codebase.
  • Chores

    • Updated dependencies in package.json to enhance functionality and remove unused packages.
    • Adjusted Tailwind CSS configuration to include styles from the new UI package.
    • Added a placeholder for observability integration.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/create-llama/pull/399 **Author:** [@thucpn](https://github.com/thucpn) **Created:** 10/28/2024 **Status:** ✅ Merged **Merged:** 11/1/2024 **Merged by:** [@marcusschiesser](https://github.com/marcusschiesser) **Base:** `main` ← **Head:** `feat/integrate-llamaindex-chat-ui` --- ### 📝 Commits (10+) - [`981c561`](https://github.com/run-llama/create-llama/commit/981c56187ee6306fc4726a7b24869650062d404f) feat: integrate llamaindex chat-ui - [`f59e13e`](https://github.com/run-llama/create-llama/commit/f59e13e9e594ff250c7411ae59ee1dbe39373dde) refactor: add message id and use append function - [`4f59d61`](https://github.com/run-llama/create-llama/commit/4f59d6166b9b44634a0d8f2e5ef03f7dd4ec1d36) refactor: useFile from chat-ui - [`65a2a2b`](https://github.com/run-llama/create-llama/commit/65a2a2bc22898a8f43fbd08f4da89b4e57b4a450) refactor: move code to chat input and section - [`0ea22d2`](https://github.com/run-llama/create-llama/commit/0ea22d2bb3cc8ad2f47da6cefd4309b820d4f393) keep chat message content as it is - [`d7a143a`](https://github.com/run-llama/create-llama/commit/d7a143a73f26502b2e0e39a2335e8e3bf780012a) refactor: use data from context instead of props - [`c30edb2`](https://github.com/run-llama/create-llama/commit/c30edb2623e1201874118767a54bf446ba774e96) feat: use markdown from chat-ui - [`97eac2b`](https://github.com/run-llama/create-llama/commit/97eac2b45611f1775bbb4751de875d1268cb3c8b) fix: keep passing append to avoid re-render when chat suggestion changed - [`244a4a7`](https://github.com/run-llama/create-llama/commit/244a4a723cddd5f769fb46df6ea9dac12f9c67c7) fix: remove dead code - [`0f2c7a9`](https://github.com/run-llama/create-llama/commit/0f2c7a96f7e0a4a61f381d190e0dead48dc28c86) refactor: use chat starter questions from chat-ui ### 📊 Changes **34 files changed** (+290 additions, -2019 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/nice-garlics-repeat.md` (+5 -0) 📝 `templates/types/streaming/nextjs/app/components/chat-section.tsx` (+11 -42) ➖ `templates/types/streaming/nextjs/app/components/ui/README-template.md` (+0 -1) ➖ `templates/types/streaming/nextjs/app/components/ui/chat/chat-actions.tsx` (+0 -28) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/chat-avatar.tsx` (+4 -2) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/chat-input.tsx` (+52 -115) ➕ `templates/types/streaming/nextjs/app/components/ui/chat/chat-message-content.tsx` (+30 -0) ➖ `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-agent-events.tsx` (+0 -222) ➖ `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-events.tsx` (+0 -50) ➖ `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-files.tsx` (+0 -13) ➖ `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-image.tsx` (+0 -17) ➖ `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-sources.tsx` (+0 -173) ➖ `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-suggestedQuestions.tsx` (+0 -31) ➖ `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-tools.tsx` (+0 -40) ➖ `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/codeblock.tsx` (+0 -131) ➖ `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/index.tsx` (+0 -184) ➖ `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/markdown.tsx` (+0 -172) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/chat-messages.tsx` (+25 -131) ➕ `templates/types/streaming/nextjs/app/components/ui/chat/chat-starter.tsx` (+26 -0) ➖ `templates/types/streaming/nextjs/app/components/ui/chat/chat.interface.ts` (+0 -25) _...and 14 more files_ </details> ### 📄 Description <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a modular chat interface with a new `ChatSectionUI` component. - Added `ChatStarter` component for fetching and displaying starter questions. - Implemented `ToolAnnotations` for displaying tool-related annotations in chat messages. - Introduced `Markdown` component for rendering markdown content with media preprocessing. - Added `CustomChatMessages` and `CustomChatInput` components for enhanced chat functionality. - **Bug Fixes** - Simplified error handling across various components for better user feedback. - **Refactor** - Streamlined components by removing unnecessary props and integrating hooks for state management. - Renamed and restructured several components for improved clarity and modularity. - Removed deprecated components to simplify the codebase. - **Chores** - Updated dependencies in `package.json` to enhance functionality and remove unused packages. - Adjusted Tailwind CSS configuration to include styles from the new UI package. - Added a placeholder for observability integration. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:14:58 -05:00
yindo closed this issue 2026-02-15 20:14:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#477