Closed leehuwuj closed 1 week ago
Latest commit: 2ddb48145269165e0fedc2ef0bbe5f9ad39ea257
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The recent changes introduce a support feature for LlamaCloud indexes within the FastAPI application. This includes the addition of a get_llama_cloud_index()
function and an update to the existing get_index()
function to handle LlamaCloud configurations. Furthermore, the pyproject.toml
file has been updated to include newer versions of llama-index
and llama-index-core
dependencies.
Files | Change Summary |
---|---|
templates/components/vectordbs/python/none/index.py |
Added get_llama_cloud_index() function and modified get_index() to conditionally use LlamaCloud index. |
templates/types/streaming/fastapi/app/engine/index.py |
Similar updates as above for LlamaCloud index handling and related configurations, logging, and error checking. |
templates/types/streaming/fastapi/pyproject.toml |
Updated llama-index and llama-index-core dependencies to versions 0.10.52 and 0.10.52.post1 , respectively. |
sequenceDiagram
participant User
participant FastAPI
participant LlamaCloudIndex
participant VectorStore
User->>FastAPI: Request to get an index
FastAPI->>FastAPI: Check USE_LLAMA_CLOUD variable
alt LlamaCloud enabled
FastAPI->>LlamaCloudIndex: Create LlamaCloud index using get_llama_cloud_index()
LlamaCloudIndex-->>FastAPI: LlamaCloud index instance
else LlamaCloud disabled
FastAPI->>VectorStore: Create VectorStore index
VectorStore -->> FastAPI: VectorStore index instance
end
FastAPI-->>User: Return index instance
In the realm of code with APIs, A LlamaCloud index now flies high, Configurations set with care, New versions bring flair, FastAPI and LlamaCloud, reaching new skies. 🌤️🦙
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
llama-index
andllama-index-core
dependencies to versions0.10.52
and0.10.52.post1
, respectively, improving compatibility and performance.Configuration