mirror of
https://github.com/chroma-core/chroma.git
synced 2026-10-29 01:15:11 +08:00
## Description of changes For better dx when using custom embedding function, this allows users to add a decorator to custom embedding functions to register their embedding functions during get_collection. It also adds better error handling when the user does not register their embedding function ,and prompts them down the correct path. This PR also adds async fastapi tests *Summarize the changes made by this PR.* - Improvements & Bug fixes - ... - New functionality - ... ## Test plan *How are these changes tested?* - [ ] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?* --------- Co-authored-by: Trayan Azarov <trayan.azarov@amikos.tech>
24 lines
489 B
Bash
Executable File
24 lines
489 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
export CHROMA_PORT=8000
|
|
|
|
function cleanup {
|
|
docker compose -f docker-compose.test.yml down --rmi local --volumes
|
|
}
|
|
|
|
trap cleanup EXIT
|
|
|
|
docker compose -f docker-compose.test.yml --env-file ${ENV_FILE:-compose-env.linux} up --build -d
|
|
|
|
export CHROMA_INTEGRATION_TEST_ONLY=1
|
|
export CHROMA_SERVER_HOST=localhost
|
|
export CHROMA_SERVER_HTTP_PORT=8000
|
|
export CHROMA_SERVER_NOFILE=65535
|
|
|
|
echo testing: python -m pytest "$@"
|
|
python -m pytest "$@"
|
|
|
|
docker compose down
|