Closed marcusschiesser closed 2 weeks ago
Latest commit: 9a0c3edfe3e5f1bfdcc62cac8d09985f9c311f8c
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 primary change involves updating the llamaindex
dependency from version 0.3.16
to 0.4.3
across multiple template files for both Express and Next.js projects. This update includes introducing new dependencies and making several code refactors and improvements. These changes aim to enhance functionality, streamline code, and integrate new features provided by the updated llamaindex
.
File Path | Change Summary |
---|---|
templates/types/streaming/express/package.json | Updated the llamaindex version from 0.3.16 to 0.4.3 . |
templates/types/streaming/express/src/controllers/llamaindex-stream.ts | Refactored imports, removed unused types and functions, updated function signatures, and simplified response handling in the createParser function. Added EngineResponse type and removed various deprecated types and functions. |
templates/types/streaming/express/src/controllers/stream-helper.ts | Changed event listener from "retrieve" to "retrieve-end" and updated createCallbackManager function to include payload property in destructured data. |
templates/types/streaming/nextjs/package.json | Updated llamaindex version and added new dependencies: @apidevtools/swagger-parser , @e2b/code-interpreter , and @llamaindex/pdf-viewer . Adjusted versions for existing packages, including updates for next , got , typescript , and more. |
.changeset/happy-lamps-rush.md | Documented the update to llamaindex 0.4.3 . |
sequenceDiagram
participant Client
participant ExpressApp
participant LlamaIndex
Client ->> ExpressApp: Initiate Request
ExpressApp ->> LlamaIndex: Fetch Data (Using EngineResponse)
LlamaIndex --> ExpressApp: Provide Data Stream
ExpressApp ->> Client: Stream Response
LlamaIndexTS
could resolve errors when using older versions of llamaindex
.In code, we find a brighter day,
Withllamaindex
leading the way.
Dependencies new, features gleam,
Express and Next.js in a dream.
Bugs we face, yet none shall stay,
For our updates clear the fray. 🐇✨
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
@apidevtools/swagger-parser
,@e2b/code-interpreter
, and@llamaindex/pdf-viewer
for enhanced functionality in Next.js projects.Improvements
llamaindex
package to version0.4.3
, incorporating new features and improvements.next
,got
,tiktoken
,vaul
,formdata-node
,@types/uuid
,eslint-config-next
, andtypescript
.Refactor
createCallbackManager
function.