* 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>
Examples for llama-index-server
This directory contains examples for llama-index-server.
How to run the examples
-
Make sure you have uv installed.
-
Install the dependencies (with published packages) by running the following command:
uv sync -
Navigate to one of the example folders and follow the instructions in the example's README.md file:
Local Development
-
For local development, you first need to build the UI resources for the server. At the root of the project, run the following command:
pnpm install pnpm build -
Config to use the local llama-index-server package:
To run the examples with the local llama-index-server package, you need to tell uv to use the virtual environment of the root project by setting the
UV_PROJECTenvironment variable.export UV_PROJECT=<absolute path of the root project>Then continue with step 3 above.
You can also use
--project <path to the root project>instead of setting theUV_PROJECTenvironment variable.