Part 6/11:
Handling JSON formatting was tricky; on Windows, nested double quotes needed escaping, and all JSON data had to be assembled into single-line strings for copy-pasting. After several adjustments, vectors could be added almost instantaneously, with response times around 0.0002 seconds for small vectors, illustrating impressive speed.
Searching then followed a similar pattern: a POST request with a query vector, optional filters, and parameters specifying the number of top results (topK). Results were returned with IDs, scores, and payloads, with the entire process completing in mere milliseconds.
The addition of filters allowed narrowing down results based on specific payload attributes, a feature that aligned well with microservice filtering needs.