Build AI agents and web apps — with a single binary.
Find a file
Max ca78c40293 Refactor attachment handling and enhance RAG/Vision integration in tests
- Updated the TestUpload and TestUploadWithRAG functions to remove unnecessary parameters and improve clarity.
- Enhanced RAG handling by adding options for enabling/disabling RAG processing during file uploads.
- Improved test cases for RAG functionality, ensuring proper indexing behavior based on RAG settings.
- Refactored vision-related tests to include options for enabling/disabling vision processing, ensuring accurate responses based on the model capabilities.
- Streamlined the setup of test assistants to simplify the testing process.

These changes improve the maintainability and clarity of the attachment handling code, paving the way for better functionality in file uploads and processing.
2025-01-06 14:04:12 +08:00
.github Update Go version and dependencies; enhance Neo API functionality 2025-01-02 13:06:36 +08:00
aigc feat: Integrate AIGC & OpenAI with Moapi service 2024-07-30 16:59:13 +08:00
api Remove deprecated import and storage API loading from the codebase 2024-11-06 09:25:29 +08:00
cert [add] migrate cert 2023-02-02 19:25:35 +08:00
cmd Update dependencies in go.mod and go.sum; upgrade golang.org/x/crypto to v0.31.0, golang.org/x/text to v0.21.0, golang.org/x/sync to v0.10.0, and golang.org/x/sys to v0.28.0. Modify process initialization in cmd/run.go to use context for improved execution management. 2024-12-13 01:02:22 +08:00
config Refactor startup logic to improve directory checks and enhance welcome message display 2024-11-29 17:36:45 +08:00
connector fix setup bugs 2023-05-18 15:28:22 +08:00
crypto Add algorithm parameter to HmacWith function 2024-01-27 10:17:48 +08:00
data Remove deprecated storage and import API definitions 2024-11-06 09:16:30 +08:00
docker Update Dockerfiles to use Ubuntu 24.04 and change download source for Yao binary 2024-11-29 14:38:41 +08:00
docs [_] 2022-11-21 13:32:51 +08:00
engine Remove deprecated import and storage API loading from the codebase 2024-11-06 09:25:29 +08:00
flow [add] migrate task & schedule 2023-02-03 10:25:17 +08:00
fs [add] fs allows access to the app root directory ( it's an dangerous operation, be careful to use it) 2024-06-25 17:08:54 +08:00
helper Translate captcha and password validation error messages to English for improved clarity 2024-12-02 19:15:44 +08:00
i18n [add] migrate fs & i18n 2023-02-02 11:29:58 +08:00
importer fixt tests 2023-09-21 17:23:05 +08:00
moapi Remove unused utils import and clean up ImagesGenerations function 2024-11-07 17:03:58 +08:00
model [fix] plugins load 2023-04-02 16:53:24 +08:00
neo Refactor attachment handling and enhance RAG/Vision integration in tests 2025-01-06 14:04:12 +08:00
openai Refactor Neo API chat handling to improve AI interaction and error management. Introduce background processing for chat with AI, enhancing responsiveness and client handling. Update assistant initialization logic to streamline the creation of OpenAI assistants and ensure proper error handling. Modify message struct to support structured error responses, improving clarity in communication. Additionally, clean up unused code and enhance overall maintainability of the assistant management system. 2024-12-14 17:45:40 +08:00
pack [add] pack & start command support license 2023-04-23 10:57:28 +08:00
pipe Refactor WithGlobal method to handle nil data 2024-02-17 21:34:32 +08:00
plugin [fix] plugins load 2023-04-02 16:53:24 +08:00
query fix setup bugs 2023-05-18 15:28:22 +08:00
runtime Enhance runtime error stack trace output for better debugging 2024-08-01 17:14:11 +08:00
schedule [add] start tasks and schedules 2023-04-02 15:07:29 +08:00
script feat: Add support for directory mapping from tsconfig in TypeScript import 2024-07-31 11:11:22 +08:00
service Add option to disable Gzip compression for static files and update headers 2024-11-30 18:23:21 +08:00
setup Fix endpoint URL formatting to handle default port correctly 2024-11-29 20:50:24 +08:00
share Add option to disable Gzip compression for static files and update headers 2024-11-30 18:23:21 +08:00
socket [*] migrate to gou v0.10.3 (50%) 2023-02-01 17:25:11 +08:00
store [fix] plugins load 2023-04-02 16:53:24 +08:00
studio return 401 for invalid token 2024-08-04 12:54:05 +08:00
sui Update URL handling in request data to use mapped URL 2024-12-03 16:21:52 +08:00
task [add] start tasks and schedules 2023-04-02 15:07:29 +08:00
test Refactor assistant management and enhance API response structure 2024-12-29 12:57:17 +08:00
ui [add] XGen v1.0 packing 2022-09-27 23:54:06 +08:00
utils Securely update hidden props in the DSL that are only visible to the backend 2024-11-02 17:38:37 +08:00
websocket [*] migrate to gou v0.10.3 (50%) 2023-02-01 17:25:11 +08:00
wework [add] yao.wework.* processes 2023-04-09 21:25:12 +08:00
widget [_] 2023-06-15 10:48:45 +08:00
widgets Translate error messages in login process to English for improved clarity 2024-12-03 16:55:33 +08:00
xgen [add] setup 2022-10-28 11:58:05 +08:00
yao Remove deprecated storage and import API definitions 2024-11-06 09:16:30 +08:00
.gitignore Fix code signing command and update .gitignore to exclude shell scripts 2024-12-04 11:38:52 +08:00
COMMERCIAL_LICENSE.md Add commercial license terms for Yao project to outline usage requirements and compliance 2024-11-08 19:25:55 +08:00
COMMERCIAL_LICENSE.zh-CN.md 添加中文商业许可证 2024-11-08 19:31:57 +08:00
go.mod Update Go module dependencies and enhance assistant message handling in Neo API 2025-01-03 17:17:04 +08:00
go.sum Update Go module dependencies and enhance assistant message handling in Neo API 2025-01-03 17:17:04 +08:00
LICENSE + README & LICENSE 2022-02-18 21:46:24 +08:00
main.go Fix memory leaks and optimize the download process. 2024-10-30 16:48:59 +08:00
Makefile Remove setup package and related functionality from the project 2024-11-29 16:44:31 +08:00
README.md Improve README.md to clarify app creation methods and emphasize programming capabilities 2024-12-04 18:21:47 +08:00
README.zh-CN.md Update installation instructions in README 2024-05-31 17:11:11 +08:00

What is Yao?

Yao is an all-in-one application engine that enables developers to create web apps, REST APIs, business applications, and more, with AI as a development partner.

Yao lets you create apps using AI, a visual interface, or by writing them yourself. Its DSL (Domain-Specific Language) is easy to read and write, and it works well with AI. With full programming capabilities and a single command-line tool to handle everything, you can switch smoothly between manual coding and AI assistance, making web app development fast and flexible.

Quick Links:

🏠 Homepage: https://yaoapps.com

🚀 Quick Start: https://yaoapps.com/docs/documentation/en-us/getting-started

📚 Documentation: https://yaoapps.com/docs

Why Yao? https://yaoapps.com/docs/why-yao

Features

Yao is effective in both human and machine programming, with each being independent, allowing for seamless switching between the two.

🔮 AI First

We have designed a human-machine-friendly DSL (Domain-Specific Language) that makes both AI-generated and manually written code more efficient, enabling easy transitions between the two.

Typically, AI generates the initial code, and developers make modifications, significantly boosting development efficiency. In practice, AI can handle 80% to 90% of the work, allowing developers to focus on the remaining 10% to 20%.

🔮 All-in-One

Yao is an all-in-one solution for web development, requiring no additional packages or toolchain dependencies. It ships as a single executable file that includes everything you need to get started.

This greatly reduces the complexity of interacting with AI, significantly improving both the efficiency and quality of the generated code. It also eliminates many unnecessary tasks, allowing developers to focus on more important aspects.

🔮 Native TypeScript Support

Yao includes a built-in V8 engine with TypeScript support, allowing direct code execution and providing hundreds of APIs for databases, files, caching, and more, with multiple ways to add extensions.

Yao offers comprehensive programming capabilities, so you dont have to worry about being unable to implement certain features.

🔮 Multiple Coding Approaches

Combine AI-generated code, visual editing, and manual coding within the same project, with generated code that is easy to read and manually modify.

Once you understand how Yao works and its DSL, you can easily develop a code generator or AI agent tailored to your business needs.

🔮 Serverless

Launch in seconds with built-in cloud functions and API gateways to easily create server-side apps. Integrate seamlessly with the DevOps ecosystem for one-click deployment.

🔮 Edge Devices Support

Yao apps also support running on edge devices equipped with arm64 or x64 chips, suitable for various scenarios in IoT applications.