Skip to content

Commit

Permalink
extent the Template field documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Jan 27, 2025
1 parent 3f82c7c commit d7ae4b6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions client/collection_field_description.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,19 @@ type EmbeddingDescription struct {
Provider string
// (Optional) Template is the local path of the template to use with the
// field values to form the content to send to the model.
//
// For example, with the following schema,
// ```
// type User {
// name: String
// age: Int
// name_about_v: [Float32!] @embedding(fields: ["name", "age"], ...)
// }
// ````
// we can define the following Go template.
// ```
// {{ .name }} is {{ .age }} years old.
// ```
Template string
// URL is the url enpoint of the provider's API.
URL string
Expand Down

0 comments on commit d7ae4b6

Please sign in to comment.