Git Product home page Git Product logo

app-builder's Introduction

logo

License Supported Python versions Supported OSs

简体中文 | English


什么是AppBuilder-SDK

百度智能云千帆AppBuilder-SDK是百度智能云千帆AppBuilder面向AI原生应用开发者提供的一站式开发平台的客户端SDK。

我们提供自底向上的:基础组件、流程编排、端到端应用 三类功能。使用百度智能云千帆AppBuilder-SDK,你可以:

  • 配合百度智能云千帆AppBuilder平台网页端,分钟级在本地搭建包含百度工业实践的端到端的AI原生应用
  • 配合 基础组件 & 流程编排,积木式搭建个性化的Assistant + FunctionCall应用
  • 提供 API调用 & 交互式窗口 两种服务化部署方式,支持快速上云,平滑嵌入到你的产品中

如何安装

百度智能云千帆AppBuilder-SDK 最新版本 0.7.0 (2024-04-30)

百度智能云千帆AppBuilder-SDK 更新记录&最新特性请查阅我们的版本说明

  • Python版本安装,要求Python版本 >= 3.9
python3 -m pip install --upgrade appbuilder-sdk
  • JavaGo 版本安装,以及通过Docker镜像使用,请查阅安装说明

快速开始你的第一个AI原生应用

  • 请在>=3.9的Python环境安装appbuilder-sdk后使用该端到端应用示例
  • 示例中提供了试用Token,访问和QPS受限,正式使用请替换为您的个人Token
  • 示例中的应用为:地理小达人,点击该连接在网页端试用

代码示例

import appbuilder
import os

# 设置环境中的TOKEN,以下TOKEN为访问和QPS受限的试用TOKEN,正式使用请替换为您的个人TOKEN
os.environ["APPBUILDER_TOKEN"] = "bce-v3/ALTAK-n5AYUIUJMarF7F7iFXVeK/1bf65eed7c8c7efef9b11388524fa1087f90ea58"

# 从AppBuilder网页获取并传入应用ID,以下为地理小达人应用ID
app_id = "42eb211a-14b9-43d2-9fae-193c8760ef26"

app_builder_client = appbuilder.AppBuilderClient(app_id)
conversation_id = app_builder_client.create_conversation()

answer = app_builder_client.run(conversation_id, "**的首都在哪里?春季天气怎么样?有什么适合玩的景点?")
print(answer.content)

回答展示

**的首都是北京^[2]^。

春季的北京天气多变,早晚温差较大,出门还是要多带件外套。但是,这个季节是北京逛公园的好季节,玉兰花、桃花与迎春花等花卉盛开,为北京的春天增添了美丽的色彩^[1]^。

适合玩的景点有:

  1. 天坛公园。天坛公园是明清两代的皇家祭祀场所,也是世界上现存规模最大的古代祭祀建筑群。
  2. 故宫博物院。故宫是**古代建筑和文化的重要遗产,也是北京的一大旅游景点。
  3. 长城。长城是**古代的一项伟大工程,也是北京周边的重要景点。
  4. 颐和园。颐和园是**古代皇家园林,也是北京的一大旅游景点^[1]^。

更多AI原生应用示例代码,请查阅 CookBooks,我们有以下cookbook推荐您优先阅读:

百度智能云千帆AppBuilder-SDK 能力全景图

wechat

用户文档

开源社区与活动

百度智能云千帆AppBuilder-SDK微信交流群

wechat

License

AppBuilder-SDK遵循Apache-2.0开源协议。

app-builder's People

Contributors

seiriosplus avatar barrierye avatar guru4elephant avatar ide-rea avatar mrchengmo avatar sucuicong avatar hermitgreen avatar longchao1916 avatar cjopengler avatar qjing666 avatar leidongchang avatar birham-red-bd avatar qiuhelong avatar raullese avatar herbertarthur avatar horsedream avatar xenon0220 avatar c9luster avatar samaritan1998 avatar userpj avatar jzhang533 avatar barry2025 avatar buchongyu2 avatar fengjial avatar smallx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.