[PR #701] [MERGED] chore: replace Python examples with llama-deploy #698

Closed
opened 2026-02-15 20:15:54 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/create-llama/pull/701
Author: @thucpn
Created: 7/3/2025
Status: Merged
Merged: 7/10/2025
Merged by: @marcusschiesser

Base: mainHead: tp/replace-python-examples-with-llamadeploy


📝 Commits (10+)

📊 Changes

49 files changed (+2529 additions, -755 deletions)

View changed files

.changeset/good-avocados-try.md (+5 -0)
📝 .github/workflows/e2e.yml (+0 -9)
📝 packages/create-llama/e2e/python/resolve_dependencies.spec.ts (+7 -6)
📝 packages/create-llama/e2e/shared/llamaindexserver_template.spec.ts (+20 -8)
📝 packages/create-llama/e2e/typescript/resolve_dependencies.spec.ts (+2 -2)
📝 packages/create-llama/helpers/env-variables.ts (+65 -23)
📝 packages/create-llama/helpers/index.ts (+18 -12)
📝 packages/create-llama/helpers/python.ts (+51 -38)
📝 packages/create-llama/helpers/run-app.ts (+59 -1)
📝 packages/create-llama/helpers/types.ts (+13 -8)
packages/create-llama/helpers/use-case.ts (+84 -0)
📝 packages/create-llama/questions/index.ts (+25 -12)
packages/create-llama/templates/components/ts-proxy/index.ts (+9 -0)
packages/create-llama/templates/components/ts-proxy/package.json (+18 -0)
📝 packages/create-llama/templates/components/ui/layout/header.tsx (+1 -1)
📝 packages/create-llama/templates/components/use-cases/python/agentic_rag/README-template.md (+73 -26)
packages/create-llama/templates/components/use-cases/python/agentic_rag/citation.py (+106 -0)
packages/create-llama/templates/components/use-cases/python/agentic_rag/query.py (+47 -0)
📝 packages/create-llama/templates/components/use-cases/python/agentic_rag/workflow.py (+13 -10)
📝 packages/create-llama/templates/components/use-cases/python/code_generator/README-template.md (+66 -32)

...and 29 more files

📄 Description

Python use-cases structure:

  • src/
  • ├── .env
  • ├── workflow.py
  • ├── settings.py
  • ├── index.py
  • ├── generate.py
  • ├── ... (other utility files)
  • ui/
  • ├── data/*.pdf
  • ├── output/*.pdf
  • ├── components/*.tsx
  • ├── layout/*.tsx
  • ├── index.ts
  • └── package.json
  • llama_deploy.yaml
  • pyproject.toml
  • README.md

Update use cases:

  • Agentic RAG
  • Financial Report
  • Deep Research
  • Code Generator
  • Document Generator
  • Human in the Loop (removed)

Update create-llama:

  • Update e2e: skip chat tests for Python LlamaDeploy
  • Update documents

Summary by CodeRabbit

  • New Features

    • Added support for Python LlamaDeploy with updated environment and deployment workflows.
    • Introduced new modules for citation-aware responses, artifact extraction, and advanced query engine tools.
    • Added document generation (PDF/HTML) and Python code interpretation tools with integrated workflow support.
    • Implemented financial report workflow with tool-assisted chat and event-driven architecture.
    • Introduced LlamaCloud file ingestion service and enhanced index management with automatic pipeline creation.
    • Added TypeScript proxy server UI component for LlamaIndexServer integration.
  • Improvements

    • Refined environment variable handling and directory structures for Python LlamaDeploy templates.
    • Enhanced workflow initialization with dotenv loading and settings initialization across Python use cases.
    • Streamlined chat history processing and response streaming in workflows.
    • Updated README templates with detailed setup, deployment, API usage, and UI customization instructions.
    • Improved test suites by conditionally selecting use cases based on framework and environment variables.
    • Updated project dependencies and build configurations for compatibility with new deployment mechanisms.
  • Bug Fixes

    • Fixed Llama logo URL in UI header component.
  • Chores

    • Removed deprecated FastAPI-based LlamaIndexServer files and human-in-the-loop (HITL) use case components.
    • Cleaned up legacy UI generation and indexing scripts, replacing with new implementations aligned with LlamaDeploy.
    • Updated CI workflows to remove Python server package build step for streamlined testing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/create-llama/pull/701 **Author:** [@thucpn](https://github.com/thucpn) **Created:** 7/3/2025 **Status:** ✅ Merged **Merged:** 7/10/2025 **Merged by:** [@marcusschiesser](https://github.com/marcusschiesser) **Base:** `main` ← **Head:** `tp/replace-python-examples-with-llamadeploy` --- ### 📝 Commits (10+) - [`e5b5e9f`](https://github.com/run-llama/create-llama/commit/e5b5e9fec3b11a052234ab433c1726d2bcbb6bda) chore: replace Python examples with llama-deploy - [`d96d830`](https://github.com/run-llama/create-llama/commit/d96d8305923d2e25876990a3ddf74633eca33060) use fixed version for ts-server package - [`b6fc63b`](https://github.com/run-llama/create-llama/commit/b6fc63bd95b86146a68cfc2cc335b8c394faf7e6) update readme - [`fad3414`](https://github.com/run-llama/create-llama/commit/fad34146af1b7359a1a863d8d5663125e48c562c) update pyproject.toml - [`2a00cad`](https://github.com/run-llama/create-llama/commit/2a00cadc8f420894535f3cac82dda671c2a12d04) fix load env - [`b701ca3`](https://github.com/run-llama/create-llama/commit/b701ca3ba0a1d4da8210f862f93a0ab785b3e6cf) update readme for .env - [`b991ca8`](https://github.com/run-llama/create-llama/commit/b991ca81f8dde18402c7eca6a1dafc6aa6d39076) use absolute logo - [`1f25c9d`](https://github.com/run-llama/create-llama/commit/1f25c9d34f59882075eb6f229b939cc7c978f906) update comment - [`a20dd66`](https://github.com/run-llama/create-llama/commit/a20dd6630952403f243754c1e8fb80aacd1364a8) document generator - [`d01876a`](https://github.com/run-llama/create-llama/commit/d01876a82a7f7de1d81ec8860c3331bde977b930) fix doc ### 📊 Changes **49 files changed** (+2529 additions, -755 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/good-avocados-try.md` (+5 -0) 📝 `.github/workflows/e2e.yml` (+0 -9) 📝 `packages/create-llama/e2e/python/resolve_dependencies.spec.ts` (+7 -6) 📝 `packages/create-llama/e2e/shared/llamaindexserver_template.spec.ts` (+20 -8) 📝 `packages/create-llama/e2e/typescript/resolve_dependencies.spec.ts` (+2 -2) 📝 `packages/create-llama/helpers/env-variables.ts` (+65 -23) 📝 `packages/create-llama/helpers/index.ts` (+18 -12) 📝 `packages/create-llama/helpers/python.ts` (+51 -38) 📝 `packages/create-llama/helpers/run-app.ts` (+59 -1) 📝 `packages/create-llama/helpers/types.ts` (+13 -8) ➕ `packages/create-llama/helpers/use-case.ts` (+84 -0) 📝 `packages/create-llama/questions/index.ts` (+25 -12) ➕ `packages/create-llama/templates/components/ts-proxy/index.ts` (+9 -0) ➕ `packages/create-llama/templates/components/ts-proxy/package.json` (+18 -0) 📝 `packages/create-llama/templates/components/ui/layout/header.tsx` (+1 -1) 📝 `packages/create-llama/templates/components/use-cases/python/agentic_rag/README-template.md` (+73 -26) ➕ `packages/create-llama/templates/components/use-cases/python/agentic_rag/citation.py` (+106 -0) ➕ `packages/create-llama/templates/components/use-cases/python/agentic_rag/query.py` (+47 -0) 📝 `packages/create-llama/templates/components/use-cases/python/agentic_rag/workflow.py` (+13 -10) 📝 `packages/create-llama/templates/components/use-cases/python/code_generator/README-template.md` (+66 -32) _...and 29 more files_ </details> ### 📄 Description Python use-cases structure: * src/ * ├── .env * ├── workflow.py * ├── settings.py * ├── index.py * ├── generate.py * ├── ... (other utility files) * ui/ * ├── data/*.pdf * ├── output/*.pdf * ├── components/*.tsx * ├── layout/*.tsx * ├── index.ts * └── package.json * llama_deploy.yaml * pyproject.toml * README.md Update use cases: - [x] Agentic RAG - [x] Financial Report - [x] Deep Research - [x] Code Generator - [x] Document Generator - [x] ~~Human in the Loop (removed)~~ Update create-llama: - [x] Update e2e: skip chat tests for Python LlamaDeploy - [x] Update documents <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for Python LlamaDeploy with updated environment and deployment workflows. * Introduced new modules for citation-aware responses, artifact extraction, and advanced query engine tools. * Added document generation (PDF/HTML) and Python code interpretation tools with integrated workflow support. * Implemented financial report workflow with tool-assisted chat and event-driven architecture. * Introduced LlamaCloud file ingestion service and enhanced index management with automatic pipeline creation. * Added TypeScript proxy server UI component for LlamaIndexServer integration. * **Improvements** * Refined environment variable handling and directory structures for Python LlamaDeploy templates. * Enhanced workflow initialization with dotenv loading and settings initialization across Python use cases. * Streamlined chat history processing and response streaming in workflows. * Updated README templates with detailed setup, deployment, API usage, and UI customization instructions. * Improved test suites by conditionally selecting use cases based on framework and environment variables. * Updated project dependencies and build configurations for compatibility with new deployment mechanisms. * **Bug Fixes** * Fixed Llama logo URL in UI header component. * **Chores** * Removed deprecated FastAPI-based LlamaIndexServer files and human-in-the-loop (HITL) use case components. * Cleaned up legacy UI generation and indexing scripts, replacing with new implementations aligned with LlamaDeploy. * Updated CI workflows to remove Python server package build step for streamlined testing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:15:54 -05:00
yindo closed this issue 2026-02-15 20:15:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#698