Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
c00e86a
Start ChromaDBService impl
TotallyNotChase Dec 6, 2025
991571f
Stricter type for collection metadata
TotallyNotChase Dec 7, 2025
9a0998c
Remove reduntant type param from `Extractor`
TotallyNotChase Dec 7, 2025
0465721
Update service and introduce helper trait impls
TotallyNotChase Dec 7, 2025
18c910c
Add helpers for parsing Rholang list and map types
TotallyNotChase Dec 7, 2025
b9a1b02
Hook up `create_collection` as a system process
TotallyNotChase Dec 7, 2025
edc809a
Fix create_collection arity declaration
TotallyNotChase Dec 7, 2025
ed285d3
No overloading support at the moment
TotallyNotChase Dec 7, 2025
4297d88
Add examples for create-collection usage
TotallyNotChase Dec 7, 2025
bfae4e5
Utilities for transforming collection metadata into Rholang par
TotallyNotChase Dec 7, 2025
0f9b3ec
Add ChromaDB get collection metadata service method
TotallyNotChase Dec 7, 2025
c3c0219
Update example to use nil
TotallyNotChase Dec 7, 2025
4c7a39c
Add upsert collection entries service method
TotallyNotChase Dec 7, 2025
7b47240
Fix rho type utilities taking direct value instead of reference
TotallyNotChase Dec 8, 2025
7ebb407
Hook up upsert entries
TotallyNotChase Dec 8, 2025
6f2f0dc
Add helper for working with SBERT embeddings
TotallyNotChase Dec 14, 2025
aa33b3d
Add query method as well as support for SBERT
TotallyNotChase Dec 14, 2025
ffa9fee
Fix CollectionEntry to Rho Par conversion
TotallyNotChase Dec 15, 2025
964c755
Minor fixes and updates
TotallyNotChase Dec 17, 2025
a6cac4e
Runnable Examples
TotallyNotChase Dec 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
544 changes: 541 additions & 3 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions rholang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ tempfile = "3.19.1"
clap = { version = "4.5", features = ["derive"] }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
chromadb = { version = "2.3.0", features = ["openai"] }
serde_json = { workspace = true }
rust-bert = "0.23.0"
console = "0.16.0"
async-trait.workspace = true
anyhow = "1.0.100"

[build-dependencies]
cc = "1.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
new createCollection(`rho:chroma:collection:new`), stdout(`rho:io:stdout`), retCh in {
createCollection!("bar", true, Nil, *retCh) |
for(@ok <- retCh) {
stdout!(ok)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
new createCollection(`rho:chroma:collection:new`), stdout(`rho:io:stdout`), retCh in {
createCollection!("foo", true, {"meta1" : 1, "two" : "42", "three" : 42, "meta2": "bar"}, *retCh) |
for(@res <- retCh) {
stdout!(res)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
new getCollectionMeta(`rho:chroma:collection:meta`), stdout(`rho:io:stdout`), retCh in {
getCollectionMeta!("foo", *retCh) |
for(@res <- retCh) {
stdout!(res)
}
}
16 changes: 16 additions & 0 deletions rholang/examples/system-contract/chroma-db/04-upsert-entries.rho
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
new upsertEntries(`rho:chroma:collection:entries:new`), stdout(`rho:io:stdout`), retCh in {
upsertEntries!(
"foo",
{ "doc1": ("Hello world!", Nil),
"doc2": (
"Hello world again!",
{ "meta1": "42" }
)
},
true,
*retCh
) |
for(@res <- retCh) {
stdout!(res)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
new queryEntries(`rho:chroma:collection:entries:query`), stdout(`rho:io:stdout`), retCh in {
queryEntries!("foo", [ "Hello world" ], true, *retCh) |
for(@res <- retCh) {
stdout!(res)
}
}
Loading