mirror of
https://github.com/run-llama/create-llama.git
synced 2026-07-16 11:04:26 -04:00
[PR #85] [MERGED] feat: display local pdf files #238
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/create-llama/pull/85
Author: @thucpn
Created: 5/13/2024
Status: ✅ Merged
Merged: 5/16/2024
Merged by: @marcusschiesser
Base:
main← Head:feat/display-local-pdf-files📝 Commits (10+)
45d66affeat: display local pdf files021bd3fCreate weak-bobcats-trade.md56ed2f8feat: support pdf url, open pdf dialog directly, agg same pathec9a97fcheck relative path8a2585cuse slug for nextjs static filesdf77dd5change to /api/datae29cfbafix rabbit code reviewsb4b049cget static file from file_name of node2cab2d8add unknown type9f9a7eausing pdf viewer 1.1.1📊 Changes
9 files changed (+337 additions, -50 deletions)
View changed files
➕
.changeset/weak-bobcats-trade.md(+5 -0)📝
templates/types/streaming/express/index.ts(+1 -0)📝
templates/types/streaming/fastapi/main.py(+3 -1)➕
templates/types/streaming/nextjs/app/api/data/[path]/route.ts(+38 -0)📝
templates/types/streaming/nextjs/app/components/ui/chat/chat-sources.tsx(+102 -48)➕
templates/types/streaming/nextjs/app/components/ui/chat/widgets/PdfDialog.tsx(+56 -0)➕
templates/types/streaming/nextjs/app/components/ui/drawer.tsx(+118 -0)➕
templates/types/streaming/nextjs/app/components/ui/lib/url.ts(+11 -0)📝
templates/types/streaming/nextjs/package.json(+3 -1)📄 Description
Summary by CodeRabbit
New Features
PdfDialogcomponent to display PDF content within a drawer.ChatSourcescomponent to aggregate and display nodes by URL or file path.Enhancements
ChatSourcesrendering logic to differentiate between PDFs and other sources.Dependencies
vaulversion0.9.1and@llamaindex/pdf-viewerversion1.1.1to dependencies.Backend
/dataendpoint in FastAPI.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.