-
Notifications
You must be signed in to change notification settings - Fork 247
Expand file tree
/
Copy pathCargo.toml
More file actions
89 lines (81 loc) · 2.85 KB
/
Copy pathCargo.toml
File metadata and controls
89 lines (81 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[workspace]
resolver = "2"
members = [
"crates/utopia-core",
"crates/utopia-store",
"crates/utopia-server",
"crates/utopia-ingest",
"crates/utopia-extract",
"crates/utopia-reason",
"crates/utopia-search",
"crates/utopia-llm",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/deeplethe/utopia"
[workspace.dependencies]
utopia-core = { path = "crates/utopia-core" }
utopia-store = { path = "crates/utopia-store" }
tokio = { version = "1", features = ["full"] }
axum = { version = "0.8", features = ["multipart"] }
axum-extra = { version = "0.10", features = ["cookie"] }
tower-http = { version = "0.6", features = ["cors", "trace", "fs"] }
sqlx = { version = "0.8", default-features = false, features = [
"runtime-tokio", "tls-rustls", "postgres", "uuid", "chrono", "json", "migrate", "macros",
] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "2"
anyhow = "1"
uuid = { version = "1", features = ["v4", "v7", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
argon2 = { version = "0.5", features = ["std"] }
jsonwebtoken = { version = "10", features = ["rust_crypto"] }
figment = { version = "0.10", features = ["env"] }
dotenvy = "0.15"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
flate2 = "1"
# Phase 1: 摄入/检索/LLM
utopia-ingest = { path = "crates/utopia-ingest" }
utopia-reason = { path = "crates/utopia-reason" }
utopia-search = { path = "crates/utopia-search" }
utopia-llm = { path = "crates/utopia-llm" }
tantivy = "0.26"
tantivy-jieba = "0.20"
text-splitter = "0.32"
pdf-extract = "0.12"
calamine = "0.36"
pgvector = { version = "0.4", features = ["sqlx"] }
# `gzip` 不是可选项:一次嵌入回 64×1024 个浮点数,写成 JSON 文本每个数字占
# 21 字节而信息量只有 4 字节,一次响应 1.33 MB。实测同一条链路上不压缩 62 秒、
# gzip 21 秒(429 KB)——服务端算完只用 1 秒,其余全在传。
# `default-features = false` 把它一并关掉了,这里补回来。
reqwest = { version = "0.13", default-features = false, features = ["json", "stream", "http2", "rustls", "webpki-roots", "charset", "system-proxy", "gzip"] }
feed-rs = "2"
cron = "0.12"
infer = "0.22"
sha2 = "0.11"
scraper = "0.27"
pulldown-cmark = { version = "0.13", default-features = false }
chardetng = "1"
encoding_rs = "0.8"
quick-xml = "0.42"
zip = { version = "6", default-features = false, features = ["deflate"] }
csv = "1"
# 本体导入:Oxigraph 拆出来的小而专的解析器,只解析不推理——
# 我们不需要 horned-owl 那套 OWL 推理机,投影只消费 RDF 三元组
oxttl = "0.2"
oxrdfxml = "0.2"
oxrdf = "0.3"
async-stream = "0.3"
futures-util = "0.3"
tokio-stream = "0.1"
tempfile = "3"
[profile.dev]
debug = 1
[profile.release]
lto = "thin"
strip = true