Closed thucpn closed 2 months ago
Latest commit: 8068ad5c8bd0b2d197072efe7b96a1cba08fd9c3
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The changes focus on enhancing functionalities across various files and modules. Key updates include directory creation logic, introducing documentIds
parameter in chat engine functions, setting the "private"
metadata field in Python, and refining the management of document files and annotations. Additionally, a new Next.js API endpoint for file uploads and updates to FastAPI models and routes are included, along with minor version updates and streamlined import paths.
Files/Paths | Change Summary |
---|---|
helpers/index.ts |
Updated directory creation logic to create output/tools and output/uploaded directories based on conditions. |
templates/.../typescript/agent/chat.ts |
createChatEngine function now accepts an optional documentIds parameter for filtering documents by IDs. |
templates/.../vectordbs/python/none/generate.py |
Added logic to set the "private" metadata field to "false" for each document before creating the VectorStoreIndex . |
templates/.../typescript/streaming/annotations.ts |
Introduced types and functions for managing document files and annotations in messaging systems. |
templates/.../streaming/express/index.ts |
Updated the route for serving static files from /api/files/tool-output to /api/files/output . |
templates/.../nextjs/app/api/chat/upload/route.ts |
Added a new API endpoint for uploading user documents to a vector database using Next.js serverless functions. |
templates/.../fastapi/app/api/routers/chat.py |
Updated imports and added logic for fetching chat document IDs and creating metadata filters. |
templates/.../fastapi/app/api/routers/models.py |
Renamed classes and attributes, added new methods, and updated existing methods for handling file content and annotations. |
templates/.../fastapi/app/api/routers/vercel_response.py |
Added imports and modified VercelStreamResponse to accept additional parameters and generate streaming content. |
templates/.../fastapi/gitignore |
Added output to the list of ignored directories. |
templates/.../fastapi/pyproject.toml |
Updated llama-index version from 0.10.53 to 0.10.54post1 . |
templates/.../nextjs/app/api/chat/route.ts |
Refactored imports related to chat functionality and updated the creation of chatEngine to depend on document IDs. |
templates/.../nextjs/app/components/ui/document-preview.tsx |
Updated imports, interface, and function names to handle various document types and display content accordingly. |
templates/.../express/src/controllers/chat.controller.ts |
Updated imports and logic flow to retrieve document IDs before creating the chat engine. |
templates/.../express/src/controllers/engine/chat.ts |
createChatEngine function now accepts an optional documentIds parameter for customizing chat engine creation. |
In code's vast realm where functions soar,
We added new paths to explore.
With IDs to filter and docs to preview,
Our engines now smarter, a vision anew.
FastAPI, Next.js, all in the mix,
A rabbit's delight in code's clever tricks.
🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Enhancements
documentIds
parameter for filtering documents.Bug Fixes
/api/files/tool-output
to/api/files/output
.Refactor
Chores
llama-index
dependency version inpyproject.toml
.output
directory to.gitignore
.