* 1. Take the user's query as-is. * 2. Embed it using an embedding model. * 3. Use the query's embedding to search an embedding store (containing small segments of your documents) * for the X most ...
if you don't like how the formatter laid out your code, you may need to introduce new functions/variables the formatter is not as clever as humans are, so it can sometimes produce less readable code ...