[PR #45] [MERGED] feat: display chat message sources #212

Closed
opened 2026-02-15 19:16:44 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/create-llama/pull/45
Author: @thucpn
Created: 4/10/2024
Status: Merged
Merged: 4/17/2024
Merged by: @marcusschiesser

Base: mainHead: feat/display-chat-message-sources


📝 Commits (10+)

  • f79e474 feat: display chat message sources
  • 56fa138 log node when open dialog
  • ebf78e2 show node id in dialog
  • 11ebf74 fix: enhance ui
  • 6e0f58c rename to sources
  • 3a3db16 add vercel response and update transform to work with streaming
  • 2140d21 re-add config swagger
  • daffda6 refactor: upgrade ai and support message annotations
  • 6728077 remove data headers and rename document type
  • 3ba416a feat: use appendMessageAnnotation in llama stream

📊 Changes

16 files changed (+2787 additions, -2045 deletions)

View changed files

📝 helpers/env-variables.ts (+8 -10)
📝 package.json (+1 -1)
📝 pnpm-lock.yaml (+2399 -1918)
📝 templates/types/streaming/express/package.json (+6 -6)
📝 templates/types/streaming/express/src/controllers/llamaindex-stream.ts (+46 -20)
📝 templates/types/streaming/fastapi/app/api/routers/chat.py (+22 -4)
templates/types/streaming/fastapi/app/api/routers/vercel_response.py (+29 -0)
📝 templates/types/streaming/nextjs/app/api/chat/llamaindex-stream.ts (+46 -20)
📝 templates/types/streaming/nextjs/app/components/chat-section.tsx (+1 -8)
templates/types/streaming/nextjs/app/components/transform.ts (+0 -19)
templates/types/streaming/nextjs/app/components/ui/chat/chat-image.tsx (+17 -0)
📝 templates/types/streaming/nextjs/app/components/ui/chat/chat-message.tsx (+59 -31)
templates/types/streaming/nextjs/app/components/ui/chat/chat-sources.tsx (+88 -0)
📝 templates/types/streaming/nextjs/app/components/ui/chat/index.ts (+27 -0)
templates/types/streaming/nextjs/app/components/ui/hover-card.tsx (+29 -0)
📝 templates/types/streaming/nextjs/package.json (+9 -8)

📄 Description

Summary by CodeRabbit

  • New Features

    • Enhanced chat functionality with the ability to display Wikipedia references and structured content like images and documents within chat messages.
    • Introduced a new streaming response format in FastAPI using the VercelStreamResponse class.
    • Added customizable dialog components in Next.js for detailed information display.
    • Implemented new components for rendering images and documents within chat interfaces.
  • Refactor

    • Updated FastAPI router to include a new text field in chat responses.
    • Modified chat components in Next.js to enhance message transformation and content rendering.
  • Documentation

    • Added dependency documentation for @radix-ui/react-dialog in Next.js.
  • Chores

    • Updated package dependencies to include new UI components.

🔄 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/45 **Author:** [@thucpn](https://github.com/thucpn) **Created:** 4/10/2024 **Status:** ✅ Merged **Merged:** 4/17/2024 **Merged by:** [@marcusschiesser](https://github.com/marcusschiesser) **Base:** `main` ← **Head:** `feat/display-chat-message-sources` --- ### 📝 Commits (10+) - [`f79e474`](https://github.com/run-llama/create-llama/commit/f79e474def7bb134ef05c6f2aae62c12efb9934d) feat: display chat message sources - [`56fa138`](https://github.com/run-llama/create-llama/commit/56fa138015ace1bffe414a4330d6314d6ee256f7) log node when open dialog - [`ebf78e2`](https://github.com/run-llama/create-llama/commit/ebf78e24ffe260d43b709c03aeb42153d55195e4) show node id in dialog - [`11ebf74`](https://github.com/run-llama/create-llama/commit/11ebf743580c3c3031040b02760150fb74c275cd) fix: enhance ui - [`6e0f58c`](https://github.com/run-llama/create-llama/commit/6e0f58cbadea73f0b19b1939775b1e28058dc2e2) rename to sources - [`3a3db16`](https://github.com/run-llama/create-llama/commit/3a3db1687e2331ff8c0444ec793cfd43a7465a58) add vercel response and update transform to work with streaming - [`2140d21`](https://github.com/run-llama/create-llama/commit/2140d2196b78c2f7a9da388ae4ad167be0b32ce1) re-add config swagger - [`daffda6`](https://github.com/run-llama/create-llama/commit/daffda62893d1b2c127377d57ee5978c31ce6ce9) refactor: upgrade ai and support message annotations - [`6728077`](https://github.com/run-llama/create-llama/commit/67280774629ce39f621292c59a5cc3e1b0d10698) remove data headers and rename document type - [`3ba416a`](https://github.com/run-llama/create-llama/commit/3ba416a3d9a7b09d00118e80fffc1625037c962b) feat: use appendMessageAnnotation in llama stream ### 📊 Changes **16 files changed** (+2787 additions, -2045 deletions) <details> <summary>View changed files</summary> 📝 `helpers/env-variables.ts` (+8 -10) 📝 `package.json` (+1 -1) 📝 `pnpm-lock.yaml` (+2399 -1918) 📝 `templates/types/streaming/express/package.json` (+6 -6) 📝 `templates/types/streaming/express/src/controllers/llamaindex-stream.ts` (+46 -20) 📝 `templates/types/streaming/fastapi/app/api/routers/chat.py` (+22 -4) ➕ `templates/types/streaming/fastapi/app/api/routers/vercel_response.py` (+29 -0) 📝 `templates/types/streaming/nextjs/app/api/chat/llamaindex-stream.ts` (+46 -20) 📝 `templates/types/streaming/nextjs/app/components/chat-section.tsx` (+1 -8) ➖ `templates/types/streaming/nextjs/app/components/transform.ts` (+0 -19) ➕ `templates/types/streaming/nextjs/app/components/ui/chat/chat-image.tsx` (+17 -0) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/chat-message.tsx` (+59 -31) ➕ `templates/types/streaming/nextjs/app/components/ui/chat/chat-sources.tsx` (+88 -0) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/index.ts` (+27 -0) ➕ `templates/types/streaming/nextjs/app/components/ui/hover-card.tsx` (+29 -0) 📝 `templates/types/streaming/nextjs/package.json` (+9 -8) </details> ### 📄 Description <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced chat functionality with the ability to display Wikipedia references and structured content like images and documents within chat messages. - Introduced a new streaming response format in FastAPI using the `VercelStreamResponse` class. - Added customizable dialog components in Next.js for detailed information display. - Implemented new components for rendering images and documents within chat interfaces. - **Refactor** - Updated FastAPI router to include a new text field in chat responses. - Modified chat components in Next.js to enhance message transformation and content rendering. - **Documentation** - Added dependency documentation for `@radix-ui/react-dialog` in Next.js. - **Chores** - Updated package dependencies to include new UI components. <!-- 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 19:16:44 -05:00
yindo closed this issue 2026-02-15 19:16:44 -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#212