문서 →
Chocobuilder (Origin Chocolate Factory)는 강력한 소프트웨어 개발 SDLC + LLM Generation Assistant를 쉽게 만들 수 있도록 설계된 오픈 소스 LLM 애플리케이션 개발 프레임 워크입니다.
Native (Android/iOS/Embedded Device) 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 :
섬기는 사람:
기계적 인조 인간:
https://framework.unitmesh.cc/에서 참조하거나 문서를 참조하십시오
Chocobuilder의 주요 개념은 다음과 같습니다.
(PS : 전략적 DDD와 조직 및 아키텍처를 조정하여 Michael Plöd가 만든 원산지)
사용자의 문제는 다음 단계로 처리됩니다.
예제 입력 : 시맨틱 워크 플로는 어떻게 구현됩니까?
최종 출력 :
예제 입력 : 사용자 게시 된 기사
최종 출력 :
출력 예 :
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
2023 년 상반기의 전기 요금 차트를 생성하면 정보는 다음과 같습니다. ### 1 ~ 6 월 : 201.2,222,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 年上半年电费")
최종 출력 :
RAG 관련 모듈은 영감을 받았습니다
Apache 라이센스 2.0에 따라 라이센스가 부여 된 Langchain4J 및 Spring AI를 기반으로 한 일부 RAG 모듈.
이 코드는 MPL 2.0 LICENSE
에 따라 배포됩니다.