chroma
chroma copied to clipboard
[Feature Request]: Switch to row-oriented dictionary for GetResult and QueryResult
Describe the problem
The return objects for GetResult and QueryResult are confusing to many users right now as they require you to match data up to your input ordering as well as internally in the result.
Describe the proposed solution
We should change GetResult and QueryResult to be row oriented dicts with id keys, or similar.
{"id" : {"embeddings", "distances", "metadata", "documents"}}
Alternatives considered
Sorting the results based on input ids. This doesn't always work (the case of ids and a where clause) and also doesn't solve all the problems
Importance
would make my life easier
Additional Information
No response