Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
0ad021b
updates to account for v2
0xAlighieri Apr 30, 2025
f99d3da
update add
0xAlighieri Apr 30, 2025
7a8a42e
better refactoring
0xAlighieri May 1, 2025
f73cb2a
better refactoring 2
0xAlighieri May 1, 2025
030d594
better refactoring final before testing
0xAlighieri May 1, 2025
9369b99
update v2 url fns
0xAlighieri May 1, 2025
e632f8a
test
0xAlighieri May 1, 2025
0660186
test 1
0xAlighieri May 1, 2025
9ce238e
test 2
0xAlighieri May 1, 2025
c665492
test 3
0xAlighieri May 1, 2025
67c72ec
test 4
0xAlighieri May 1, 2025
549c50e
test 4
0xAlighieri May 1, 2025
4d55830
test 4
0xAlighieri May 1, 2025
06e3fac
test 4
0xAlighieri May 1, 2025
1d38b4c
fix some clauses
0xAlighieri May 1, 2025
6684beb
use name
0xAlighieri May 1, 2025
3d8843a
test
0xAlighieri May 1, 2025
e6aadc2
some changes to collection, and add tenant module
0xAlighieri May 2, 2025
415fc3a
add new and get fns to tenant
0xAlighieri May 2, 2025
e7cbc1d
remove ending slash
0xAlighieri May 2, 2025
6d47eb1
clean and refine
0xAlighieri May 2, 2025
95f77db
clean and refine 2
0xAlighieri May 2, 2025
a77dcba
clean and refine 3
0xAlighieri May 2, 2025
04d559f
clean and refine 4
0xAlighieri May 2, 2025
f63ac8e
add database, switch old db file to util
0xAlighieri May 5, 2025
f8608cd
add database delete functionality
0xAlighieri May 5, 2025
a245d60
swap db args to follow collections convention style
0xAlighieri May 5, 2025
44d3aaf
update the utils from v2
0xAlighieri May 5, 2025
ff61309
small fixes
0xAlighieri May 5, 2025
b82dc9a
show both error and message from json response
stryderjzw May 10, 2025
1a9d42d
Merge pull request #1 from stryderjzw/display-error-messages
stryderjzw May 10, 2025
db9f852
Chroma.Collection.add needs to be passed collection_id instead of name
stryderjzw May 10, 2025
6616efa
add catch all for error_reason
stryderjzw May 12, 2025
9b66659
Merge pull request #2 from stryderjzw/display-error-messages
stryderjzw May 12, 2025
9d27046
Merge branch 'main' into fix-collection-id-main
stryderjzw May 12, 2025
9f8c6fd
changed remaining collections api to use id instead of name
stryderjzw May 12, 2025
fdbe281
updated to default to v2 of api
stryderjzw May 12, 2025
aaac775
test
0xAlighieri May 13, 2025
4abbad2
name --> test for add
0xAlighieri May 13, 2025
fa34148
test query
0xAlighieri May 13, 2025
a978c47
query name --> id
0xAlighieri May 13, 2025
b7a5d71
delete actually uses name instead of id as swagger docs say :(
stryderjzw May 14, 2025
84247f7
Merge pull request #3 from stryderjzw/fix-collection-id-main
stryderjzw May 15, 2025
3e70dc4
show both error and message from json response
stryderjzw May 10, 2025
0c71a03
add catch all for error_reason
stryderjzw May 12, 2025
9ac62c7
Merge branch '0xAlighieri-main'
stryderjzw May 15, 2025
8d1c5a8
test
0xAlighieri May 13, 2025
cbcba76
changed remaining collections api to use id instead of name
stryderjzw May 12, 2025
264aedb
added configuration to create and get_or_create for v2
stryderjzw May 17, 2025
ecaaa34
fixed errors from llm
stryderjzw May 17, 2025
a58c4e0
Merge branch 'fix-create-configuration' into latest
stryderjzw May 17, 2025
ba4cbf0
Merge remote-tracking branch 'remotes/origin/fix-collection-id' into …
stryderjzw May 17, 2025
33ab6d5
delete actually uses name instead of id as swagger docs say :(
stryderjzw May 14, 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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ In your config file you can setup the following:
config :chroma,
host: "http://localhost:8000",
api_base: "api",
api_version: "v1"
api_version: "v2"
```

By default the config is set to `api/v1`
By default the config is set to `api/v2`

## Usage

Expand Down
2 changes: 1 addition & 1 deletion lib/chroma.ex
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defmodule Chroma do
def api_version do
case Application.fetch_env(:chroma, :api_version) do
{:ok, api_version} -> api_version
_ -> "v1"
_ -> "v2"
end
end
end
Loading