[PR #175] [MERGED] feat: In-text citing #323

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

📋 Pull Request Information

Original PR: https://github.com/run-llama/create-llama/pull/175
Author: @leehuwuj
Created: 7/23/2024
Status: Merged
Merged: 8/15/2024
Merged by: @marcusschiesser

Base: mainHead: lee/feat-inline-citing


📝 Commits (10+)

  • c5a2703 update inline citing
  • b4fa9bd feat: Extract sources by citation or scores in ChatSources component
  • eb1f0ef use CondensePlusContextChatEngine
  • cc28b10 Point the repo to the current one (#227)
  • fe43d00 feat: Add Weaviate vector store for Typescript templates (#228)
  • b0c6441 Release 0.1.33 (#229)
  • 2dc5888 add custom citation link markdown
  • f7d766c update markdown
  • 0728f77 Merge remote-tracking branch 'origin/main' into lee/feat-inline-citing
  • ac18d51 feat: Improve source extraction in ChatSources component

📊 Changes

10 files changed (+256 additions, -74 deletions)

View changed files

.changeset/olive-bulldogs-boil.md (+5 -0)
📝 helpers/env-variables.ts (+50 -7)
📝 templates/components/engines/python/chat/__init__.py (+18 -5)
templates/components/engines/python/chat/node_postprocessors.py (+21 -0)
📝 templates/types/streaming/fastapi/app/api/services/file.py (+4 -6)
📝 templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-sources.tsx (+50 -45)
📝 templates/types/streaming/nextjs/app/components/ui/chat/chat-message/index.tsx (+5 -6)
📝 templates/types/streaming/nextjs/app/components/ui/chat/chat-message/markdown.tsx (+59 -4)
📝 templates/types/streaming/nextjs/app/components/ui/chat/index.ts (+34 -1)
📝 templates/types/streaming/nextjs/app/components/ui/lib/utils.ts (+10 -0)

📄 Description

Summary by CodeRabbit

  • New Features

    • Enhanced system prompts to include citation support based on external data sources.
    • Introduced functionality for managing in-text citation references, improving academic rigor in documents.
    • Improved data handling capabilities related to source nodes, ensuring only valid data is processed.
    • Added utility for validating URLs.
    • Introduced explicit control over file naming during file processing.
  • Bug Fixes

    • Adjusted source node processing logic in the ChatSources component, potentially impacting URL validation.

🔄 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/175 **Author:** [@leehuwuj](https://github.com/leehuwuj) **Created:** 7/23/2024 **Status:** ✅ Merged **Merged:** 8/15/2024 **Merged by:** [@marcusschiesser](https://github.com/marcusschiesser) **Base:** `main` ← **Head:** `lee/feat-inline-citing` --- ### 📝 Commits (10+) - [`c5a2703`](https://github.com/run-llama/create-llama/commit/c5a27036c35aeaa4a6aadfcd560be03d9b78f0cc) update inline citing - [`b4fa9bd`](https://github.com/run-llama/create-llama/commit/b4fa9bda3088aedcc62b5eca7b472f3eb99fbd68) feat: Extract sources by citation or scores in ChatSources component - [`eb1f0ef`](https://github.com/run-llama/create-llama/commit/eb1f0ef9a500c59c0285607218f71b759f147e2f) use CondensePlusContextChatEngine - [`cc28b10`](https://github.com/run-llama/create-llama/commit/cc28b1091b7df1e7d3f505183468b2223f5641f9) Point the repo to the current one (#227) - [`fe43d00`](https://github.com/run-llama/create-llama/commit/fe43d00f627d355ba79583d34b48695b22197e50) feat: Add Weaviate vector store for Typescript templates (#228) - [`b0c6441`](https://github.com/run-llama/create-llama/commit/b0c6441cfb047cd5bb27a40b99075c5931ab806d) Release 0.1.33 (#229) - [`2dc5888`](https://github.com/run-llama/create-llama/commit/2dc5888df2d4fc8a80ad31fa9d66a9b04148e46f) add custom citation link markdown - [`f7d766c`](https://github.com/run-llama/create-llama/commit/f7d766ce97f7dc368d125123129840d397f39cca) update markdown - [`0728f77`](https://github.com/run-llama/create-llama/commit/0728f77ea8f2e3ef3d82f01c3fdeb1560aa518bb) Merge remote-tracking branch 'origin/main' into lee/feat-inline-citing - [`ac18d51`](https://github.com/run-llama/create-llama/commit/ac18d51f223cb30d31ccee6508935691a8bed6ab) feat: Improve source extraction in ChatSources component ### 📊 Changes **10 files changed** (+256 additions, -74 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/olive-bulldogs-boil.md` (+5 -0) 📝 `helpers/env-variables.ts` (+50 -7) 📝 `templates/components/engines/python/chat/__init__.py` (+18 -5) ➕ `templates/components/engines/python/chat/node_postprocessors.py` (+21 -0) 📝 `templates/types/streaming/fastapi/app/api/services/file.py` (+4 -6) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-sources.tsx` (+50 -45) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/index.tsx` (+5 -6) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/markdown.tsx` (+59 -4) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/index.ts` (+34 -1) 📝 `templates/types/streaming/nextjs/app/components/ui/lib/utils.ts` (+10 -0) </details> ### 📄 Description <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced system prompts to include citation support based on external data sources. - Introduced functionality for managing in-text citation references, improving academic rigor in documents. - Improved data handling capabilities related to source nodes, ensuring only valid data is processed. - Added utility for validating URLs. - Introduced explicit control over file naming during file processing. - **Bug Fixes** - Adjusted source node processing logic in the ChatSources component, potentially impacting URL validation. <!-- 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:17:13 -05:00
yindo closed this issue 2026-02-15 19:17:13 -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#323