This question evaluates a candidate's competency in ML system design and backend engineering, covering integration of a vector store, embedding model selection and schema design, API endpoint design for upsert/delete/query, metadata handling, and consistency between a CRUD datastore and a semantic search index.
You own a document CRUD service (create/read/update/delete) that stores documents with an id, text body, and optional metadata. Extend this service by integrating a Chroma vector store to support semantic search over documents. Assume you can add a background worker if needed, but aim for a minimal, production-ready design.
search_query
function that returns a response object with a required
results
list (may be empty; never
None
). Include per-result scores and metadata.
Login required