* 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>
* split artifacts use case to code generator and document generator
* add changeset
* fix package version
* fix typing
* bump openai
* fix package
* fix typing
* fix: improve type handling and clean up UI event component
- Removed unnecessary string conversion for userInput in code_generator and deep_research workflows.
- Updated userRequest type to MessageContent for better type safety.
- Cleaned up the UI event component by removing redundant indicatorClassName logic.
* docs: word smith
* better handler typing
* refactor: remove redundant UI event handling in workflows
---------
Co-authored-by: Marcus Schiesser <mail@marcusschiesser.de>
* try testing for llamaindexserver
* Enhance TypeScript tests for dependency resolution by introducing template types and use cases
* refactor template structure
* fix package conflict
* add tests for python
* fix python mypy
* use matrix for templateType
* add changeset
* add removing data.ts for artifacts template
* don't ask llamacloud for unsupported use case and skip test
* Enhance tests for LlamaIndexServer by adding conditional skips based on data source and refining use case tests for example data source
* 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