Closed thucpn closed 2 weeks ago
Latest commit: 8fdf640e62743a9977bc27fcb37d9e9a15539ab4
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 introduce the LlamaCloud integration for chat functionality, adding support for LlamaCloud as a new data source and vector database. This includes environmental variable setups, dependency updates, and adjustments to the createChatEngine
function, alongside TypeScript agents and Python scripts to manage document indexing and retrieval from LlamaCloud.
File(s) | Change Summary |
---|---|
.changeset/tough-pugs-destroy.md |
Introduced patch for "create-llama" using LlamaCloud for chat |
helpers/types.ts |
Added "llamacloud" to TemplateVectorDB and TemplateDataSourceType types |
helpers/env-variables.ts |
Added new case for "llamacloud" with related environment variables |
helpers/typescript.ts |
Added yellow import from "picocolors" and modified console log message for "llamacloud" |
questions.ts |
Updated getDataSourceChoices and askQuestions to include logic for "llamacloud" |
templates/.../engines/typescript/agent/chat.ts |
Updated query engine description to be more generic |
templates/.../vectordbs/typescript/llamacloud/generate.ts |
Introduced loadAndIndex function for loading documents and creating embeddings in LlamaCloud |
templates/.../vectordbs/typescript/llamacloud/index.ts |
Introduced getDataSource() function for initializing LlamaCloudIndex |
templates/.../vectordbs/typescript/llamacloud/shared.ts |
Added checkRequiredEnvVars function for environment variable checks |
.../typescript/nextjs/package.json , .../express/package.json |
Updated llamaindex package version from 0.4.3 to 0.4.6 |
templates/types/.../fastapi/pyproject.toml |
Updated llama-index and llama-index-core versions from "0.10.41" to "0.10.50" |
helpers/python.ts |
Added "llamacloud" case to getAdditionalDependencies function |
templates/.../vectordbs/python/llamacloud/generate.py |
Introduced generate_datasource() function for LlamaCloud indexing |
templates/.../vectordbs/python/llamacloud/index.py |
Introduced get_index() function for initializing LlamaCloudIndex |
templates/.../engines/typescript/chat/chat.ts |
Updated createChatEngine to pass similarityTopK as a property and commented out systemPrompt property assignment |
In clouds where llamas prance and play,
New chat lands bright as day,
With types and envs, a journey grand,
Ascript and Python hand in hand.
🎉✨📜
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
Improvements
llamaindex
package versions.Bug Fixes
similarityTopK
is passed to retrievers in chat engine configurations.