อ่านเอกสาร→
Chocobuilder (Origin Chocolate Factory) เป็นเฟรมเวิร์กการพัฒนาแอปพลิเคชัน LLM โอเพนซอร์สที่ออกแบบมาเพื่อช่วยให้คุณสร้างซอฟต์แวร์ที่มีประสิทธิภาพการพัฒนา SDLC + LLM Assistant
สำหรับ Native (Android/iOS/อุปกรณ์ฝังตัว) SDK: ดูใน https://github.com/unit-mesh/edge-infer
วิธีที่ 1: รวมเข้ากับโครงการ JVM
รายการโมดูล: https://central.sonatype.com/namespace/cc.unitmesh
dependencies {
// 核心模块
implementation ' cc.unitmesh:cocoa-core:1.0.0 '
// Pinecone
implementation ' cc.unitmesh:store-pinecone:1.0.0 '
// ElasticSearch
implementation ' cc.unitmesh:store-elasticsearch:1.0.0 '
// ...其它模块
}
ดูตัวอย่างเพิ่มเติม: ตัวอย่าง/
วิธีที่ 2: ใช้ ragscript
@file:DependsOn( " cc.unitmesh:rag-script:1.0.0 " )
import cc.unitmesh.rag.*
rag {
indexing {
val chunks = document( " README.md " ).split()
store.indexing(chunks)
}
querying {
store.findRelevant( " workflow dsl design " )
.lowInMiddle()
. also {
println (it)
}
}
}
วิธีที่ 3: ตัวอย่างการปรับใช้ในท้องถิ่น
git clone https://github.com/unit-mesh/chocolate-factory
# modify OPENAI_API_KEY and OPENAI_HOST in docker-compose.yml
docker-compose up
เดสก์ท็อป/IDE:
เซิร์ฟเวอร์:
Android:
ดูใน https://framework.unitmesh.cc/ หรือดูในเอกสาร
แนวคิดหลักของ Chocobuilder คือ:
(PS: Origin ทำโดย Michael Plödในการจัดตำแหน่งองค์กรและสถาปัตยกรรมด้วยกลยุทธ์ DDD)
ปัญหาของผู้ใช้ดำเนินการโดยขั้นตอนต่อไปนี้:
ตัวอย่างอินพุต: เวิร์กโฟลว์ความหมายใช้งานอย่างไร?
ผลลัพธ์สุดท้าย:
ตัวอย่างอินพุต: บทความที่ผู้ใช้เผยแพร่
ผลลัพธ์สุดท้าย:
ตัวอย่างเอาต์พุต:
1 2 3 4 5 6 7 8 9
2 4 6 8 10 12 14 16 18
3 6 9 12 15 18 21 24 27
4 8 12 16 20 24 28 32 36
5 10 15 20 25 30 35 40 45
6 12 18 24 30 36 42 48 54
7 14 21 28 35 42 49 56 63
8 16 24 32 40 48 56 64 72
9 18 27 36 45 54 63 72 81
สร้างแผนภูมิบิลไฟฟ้าสำหรับครึ่งแรกของปี 2566 ข้อมูลมีดังนี้: ### 1 ~ มิถุนายน: 201.2222,234.3,120.2,90,90.4 ###
รหัสกระบวนการ:
%use lets-plot
import kotlin.math.PI
import kotlin.random.Random
val incomeData = mapOf(
"x" to listOf("一月", "二月", "三月", "四月", "五月", "六月"),
"y" to listOf(201.2, 222, 234.3, 120.2, 90, 94.4)
)
letsPlot(incomeData) { x = "x"; y = "y" } +
geomBar(stat = Stat.identity) +
geomText(labelFormat = "${.2f}") { label = "y"; } +
ggtitle("2023 年上半年电费")
ผลลัพธ์สุดท้าย:
โมดูลที่เกี่ยวข้องกับผ้าขี้ริ้วได้รับแรงบันดาลใจจาก
โมดูลผ้าขี้ริ้วบางส่วนขึ้นอยู่กับ Langchain4J และ Spring AI ซึ่งได้รับใบอนุญาตภายใต้ใบอนุญาต Apache 2.0
รหัสนี้มี LICENSE
แจกจ่ายภายใต้ใบอนุญาต MPL 2.0