* init private support for python BE
* feat: Add private file handling and upload support in FastAPI
- Introduced `main.py` to set up the FastAPI application with file upload capabilities.
- Created `workflow.py` to manage file reading and tool creation for uploaded files.
- Updated `server.py` to include upload API configuration.
- Modified chat router to handle file uploads and return server file metadata.
- Refactored chat models to support new file handling structure.
- Enhanced file service to manage private file storage and retrieval.
* add process base64 and update examples
* add readme example
* fix test
* feat: Add file upload support to LlamaIndexServer TS
* add get_file to fileservice
* refactor: Simplify file storage logic in helpers.ts
* update example
* attach file to user message
* fix example, improve model
* feat: Add file upload support and enhance chat workflow in LlamaIndexServer
* remove redundant change
* support agent workflow for ts
* Enhance README and add file upload examples for LlamaIndex Server. Updated instructions for running examples and added new workflows for handling uploaded files. Included detailed notes on using file attachments in workflows.
* update doc
* update example
* Enhance README with detailed instructions for file upload in chat UI. Update custom workflow to handle file attachments and modify chat router to remove unused attachment handling. Refactor create_workflow to pass attachments from chat request.
* Refactor file handling in workflows by updating the create_file_tool function to accept file attachments directly. Introduce a new ServerFileResponse model for better file response handling. Update chat router to utilize the new FileUpload model for file uploads. Clean up imports and ensure consistent file attachment processing across workflows.
* Enhance file handling in workflows by updating README and example files. Introduce a new `workflowFactory` structure to support file attachments, and improve the `extractFileAttachments` function for better clarity and usability. Update descriptions in tools to reflect changes in file ID handling.
* fix unstoppable
* chore: fix issues
* add changeset
* bump chat-ui
* bump chat-ui for eject project
---------
Co-authored-by: Marcus Schiesser <mail@marcusschiesser.de>
* Enhance LlamaIndexServer with next question suggestion feature
- Added `suggest_next_questions` parameter to the LlamaIndexServer for suggesting follow-up questions after the assistant's response.
- Updated README.md to document the new configuration option.
- Introduced `SUGGEST_NEXT_QUESTION_PROMPT` in prompts.py for customizable question suggestions.
- Bumped version to 0.1.16 in uv.lock to reflect the new feature.
* Implement next question suggestion feature in LlamaIndexServer
- Added `suggestNextQuestions` option to LlamaIndexServer for suggesting follow-up questions after the assistant's response.
- Updated README.md to include the new configuration option.
- Modified example workflow to utilize the new feature.
- Enhanced chat handler to conditionally send suggested questions based on the new option.
* add changeset
* remove log
* bundle ui instead of download
* check test
* check test
check test
check test
check test
check test
check test
check test
check test
check test
check test
* fix tests
* Update artifact path in workflow and clarify README.md text
- Changed the artifact path in the GitHub Actions workflow from `python/llama-index-server/dist/` to `dist/`.
- Revised README.md to clarify the default prompt used for the `suggest_next_questions` configuration option.
* support changeset for python
* refactor: update llama-index-server structure and workflows
* fix workflows
* fix workflows
* fix workflows
* add changeset
* fix cannot release python
* Update packages/server/README.md
Co-authored-by: Thuc Pham <51660321+thucpn@users.noreply.github.com>
* Update starter questions in LlamaIndex App and add TODO for suggestion feature in chat API
---------
Co-authored-by: Marcus Schiesser <mail@marcusschiesser.de>
Co-authored-by: Thuc Pham <51660321+thucpn@users.noreply.github.com>
* Add UI components and static assets for chat interface
* feat: Add simple chat app example with FastAPI integration
* fix: update default workflow file path and improve error handling
* update doc
* change to file_path
* include changes from #614
* fix mypy
* support devmode for backend ts server
* Revert "support devmode for backend ts server"
This reverts commit bd943fd8c1.
* fix: polling should work when server not yet started
* bump chat-ui to fix syntax highlight issue
* fix: missing language for code editor
* enhance UI with shadow overlay
* enhance doc
* fix minor UI bugs
* enhance doc
* remove unessesary debug log
* fix wrong check
* increase delay time before trigger polling
* feat: support dev mode for backend ts server (#616)
* feat: support dev mode for backend ts server
* update message
* validate typescript file
* fix: format
* use temp file to avoid server restart
* fix format
* use npx tsc
* remove typescript deps
---------
Co-authored-by: thucpn <thucsh2@gmail.com>
Co-authored-by: Thuc Pham <51660321+thucpn@users.noreply.github.com>
* use the new llama-flow workflow
* update create-llama
* update deep research workflow to use llama-flow
* update ts config to avoid overhead checking python
* Refactor workflows to use startAgentEvent and remove workflowInputEvent. Clean up unused imports and improve error handling for missing user input.
* Refactor runWorkflow to utilize AgentInputData and improve error handling for missing user input. Replace workflowInputEvent with startAgentEvent and enhance chat history management. Add callbacks for suggested questions event.
* Implement code artifact workflow and update TypeScript helpers. Introduce new `code_workflow.ts` for managing code generation and updates, and create a factory function in `workflow.ts`. Modify TypeScript helper to copy all `.ts` files instead of just `workflow.ts`. Update chat handler to utilize `AgentInputData` for improved data handling.
* Refactor runWorkflow to utilize the run function for workflow execution, replacing the previous context creation method. This change simplifies the workflow stream initialization and enhances code clarity.
* Refactor workflows to replace stopEvent with stopAgentEvent and enhance event handling in code_workflow.ts and workflow.ts. Update grammar in enhancedPrompt for clarity and improve response handling in agentStreamEvent.
* Refactor financial report workflow to streamline event handling and improve memory management. Replace custom event classes with workflowEvent for better clarity and maintainability. Update workflow definition to utilize getWorkflow function, enhancing code organization and readability.
* Add document and code artifact workflows with event handling improvements
- Introduced `doc-workflow.ts` for managing document generation and updates.
- Created `code-workflow.ts` for code artifact management.
- Enhanced event handling with `workflowEvent` for better clarity and maintainability.
- Updated `README-template.md` to include setup instructions and use cases for new workflows.
- Modified `workflow.ts` to allow switching between code and document workflows.
- Improved grammar and clarity in prompts and comments throughout the code.
* Refactor workflow.ts to replace ReadableStream with TransformStream for improved event handling. Introduce workflowToEngineResponseStream function to streamline the processing of workflow events and enhance error handling. Update return statement in runWorkflow to utilize the new stream implementation.
* add changesets
* Remove redundant totalQuestions update in getWorkflow function to streamline event processing.
* Migrate workflow types to @llamaindex/workflow package and update imports
* Replace @llama-flow/core with @llamaindex/workflow and update stream handling
* update workflows
* update import for agentic rag
* fix wrong import
* init new stream method
* Refactor stream handling in workflow.ts and stream.ts to utilize WorkflowStream type. Update processWorkflowStream function for improved event processing and clarity. Enhance imports from @llamaindex/workflow.
* Refactor stream handling in request.ts and stream.ts to improve type usage and error handling. Update toDataStreamResponse function to toDataStream and enhance callback functionality for better stream management in workflow.ts.
* Refactor server.ts, types.ts, and chat.ts to streamline workflow type usage and improve error handling. Update toDataStream function in stream.ts for better data streaming and processing. Enhance imports from @llamaindex/workflow for consistency.
* Enhance chat handler to include suggested questions functionality. Refactor toDataStream in stream.ts to support callback options for onStart, onText, and onFinal events. Export generateNextQuestions function in suggestion.ts for improved accessibility.
* Refactor workflow imports in deep_research and financial_report templates to enhance consistency and organization. Update package.json to include @llamaindex/workflow version 1.1.0. Remove commented-out code in gen-ui.ts for cleaner implementation.
* remove log
* fix incorrect toolcall llm check
* relock
* revert changes on create-llama
* chore: create-llama monorepo
* add root package.json and pnpm workspace
* keep e2e inside create-llama
* update root package.json
* move scripts and dev dependencies of create-llama to root
* update e2e test for create-llama package
* update lint workflow
* update release llama-index-server workflow
* update path for test_llama_index_server workflow
* remove local lock file
* keep lint and format in create-llama
* fix: format
* update pre-commit
* move playwright back to create-llama
* disable pnpm for installing generated frontend
* use npm for type check
* update gitignore
* try --ignore-workspace option
* Move llama-index-server from packages/python-server to python directory
* update CI for python server
* Create plenty-spies-tickle.md