Open kikuomax opened 1 year ago
I think it is OK to receive a query text. OpenAI's embedding vector needs at least 1,536 × 4 bytes ≒ 6 KB in binary form.
We do not want to expose an API to calculate embeddings to prevent abuse.
The core of the similarity search will be a Lambda function implemented with flechasdb
+ flechasdb-s3
.
The viewer may directly invoke the Lambda function.
Simply receive a query text? Or receive an embedding vector?