datastax / pulsar-transformations

Apache License 2.0
10 stars 8 forks source link

Use a template filled with the message fields and metadata for the embeddings #78

Closed cbornet closed 1 year ago

cbornet commented 1 year ago

You can have the same as before by doing

{"steps": [{"type": "compute-ai-embeddings", "text": "{{ value.valueField1 }} {{ value.valueField2 }}", "embeddings-field": "emb", "model": "gpt-3.5-turbo"}]}