Skip to content

Commit

Permalink
docs: README.md defer model.Destroy()
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 authored Oct 8, 2023
1 parent e238867 commit baf6f77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ model, err := fastembed.NewFlagEmbedding(nil)
if err != nil {
panic(err)
}
defer model.Destroy()

// With custom options
options := fastembed.InitOptions{
Expand All @@ -59,6 +60,7 @@ model, err = fastembed.NewFlagEmbedding(&options)
if err != nil {
panic(err)
}
defer model.Destroy()

documents := []string{
"passage: Hello, World!",
Expand Down

0 comments on commit baf6f77

Please sign in to comment.