Skip to content

Auto-Embeddings: possibility to run SELECT with text query #3524

Description

@donhardman

Proposal:

Now we have the possibility to create a vector field that will run auto-embeddings generation but are missing the ability to do a selection.

The easiest approach is to adapt the current knn(..) method to accept a STRING instead of an exact VECTOR.

It should produce an ERROR if we pass a string but AUTO embeddings are not configured.

So the specification may be like this:

select id, knn_dist() from test where knn ( image_vector, 5, 'smth here', {ef = 2000} )

For the JSON request, instead of query_vector, we should accept query that will represent the text query for auto embeddings generation. It should also return an error in case auto embeddings are not configured at all.

Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

Details
  • Implementation completed
  • Tests developed
  • Documentation updated
  • Documentation reviewed
  • OpenAPI YAML updated and issue created to rebuild clients

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions