Skip to content

Commit

Permalink
added examples and to EmbeddingDescription fields
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Jan 27, 2025
1 parent d7ae4b6 commit ef3b630
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/collection_field_description.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ type EmbeddingDescription struct {
// vector generation.
Fields []string
// Model is the LLM of the provider to use for generating the embeddings.
// For example: text-embedding-3-small
Model string
// Provider is the API provider to use for generating the embeddings.
// For example: openai
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.
Expand All @@ -133,5 +135,9 @@ type EmbeddingDescription struct {
// ```
Template string
// URL is the url enpoint of the provider's API.
// For example: https://api.openai.com/v1
//
// Not providing a URL will result in the use of the default
// known URL for the given provider.
URL string
}

0 comments on commit ef3b630

Please sign in to comment.