Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Multimodal #157

Merged
merged 2 commits into from
Nov 7, 2023
Merged

Multimodal #157

merged 2 commits into from
Nov 7, 2023

Conversation

atroyn
Copy link
Contributor

@atroyn atroyn commented Nov 6, 2023

This PR adds documentation about Chroma's new Multi-modal functionality.

The idea is to keep all the multi-modal specific information in one easy-to-reference place, rather than spreading it out throughout the API reference.

Copy link

vercel bot commented Nov 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 1 resolved Nov 7, 2023 4:36am

@atroyn atroyn merged commit ab3d05b into main Nov 7, 2023
2 checks passed
atroyn added a commit to chroma-core/chroma that referenced this pull request Nov 7, 2023
## Description of changes

This PR adds URIs and DataLoaders into Chroma. 
- `DataLoader` works like `EmbeddingFunction`, except it takes a `URIs`
and outputs the specified datatype.
- A `DataLoader` using `pillow` for image file loading. 
- Adds `uris` as a field on `add`, `query`, as well as an `include`
field
- Adds `data` as an `include` field 

URIs specify a place where data can be loaded from, and can be used to
load data for embedding, or as the result of retrieval.

This makes multimodal retrieval with data stored externally as files
seamless and extensible.

This PR is stacked on #1293

## Test

Integration tests pass. 

A new unit test for data loaders:
https://github.com/chroma-core/chroma/blob/c71c3efa15d2a9252db26470b9ff1cdb10a2b681/chromadb/test/data_loader/test_data_loader.py

Try the notebook:
https://github.com/chroma-core/chroma/blob/c71c3efa15d2a9252db26470b9ff1cdb10a2b681/examples/multimodal/multimodal_retrieval.ipynb

## Documentation

Documentation for this and
#1293
chroma-core/docs#157

## TODOs
- [x] Concurrent Loading
- [x] Tests
- [x] Wiring through FastAPI
- [x] Documentation
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant