Skip to content

Commit

Permalink
Merge pull request #89 from philippgille/fix-godoc-link
Browse files Browse the repository at this point in the history
Fix link in Godoc
  • Loading branch information
philippgille authored Jul 13, 2024
2 parents d7acf01 + 4fca51b commit 06fe2d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func newCollection(name string, metadata map[string]string, embed EmbeddingFunc,
// you can filter on this metadata. Optional.
// - contents: The contents to associate with the embeddings.
//
// This is a Chroma-like method. For a more Go-idiomatic one, see [AddDocuments].
// This is a Chroma-like method. For a more Go-idiomatic one, see [Collection.AddDocuments].
func (c *Collection) Add(ctx context.Context, ids []string, embeddings [][]float32, metadatas []map[string]string, contents []string) error {
return c.AddConcurrently(ctx, ids, embeddings, metadatas, contents, 1)
}
Expand All @@ -135,7 +135,7 @@ func (c *Collection) Add(ctx context.Context, ids []string, embeddings [][]float
// This is mostly useful when you don't pass any embeddings, so they have to be created.
// Upon error, concurrently running operations are canceled and the error is returned.
//
// This is a Chroma-like method. For a more Go-idiomatic one, see [AddDocuments].
// This is a Chroma-like method. For a more Go-idiomatic one, see [Collection.AddDocuments].
func (c *Collection) AddConcurrently(ctx context.Context, ids []string, embeddings [][]float32, metadatas []map[string]string, contents []string, concurrency int) error {
if len(ids) == 0 {
return errors.New("ids are empty")
Expand Down

0 comments on commit 06fe2d5

Please sign in to comment.