mirror of
https://github.com/vxcontrol/langchaingo.git
synced 2026-07-18 18:54:43 -04:00
357a3b5d3b
* embeddings: add example of proper usage, and tweak doc.go accordingly For #379 * Appease lint and add comment
15 lines
417 B
Go
15 lines
417 B
Go
/*
|
|
Package embeddings contains helpers for creating vector embeddings from text
|
|
using different providers.
|
|
|
|
The main components of this package are:
|
|
|
|
- [Embedder] interface: a common interface for creating vector embeddings
|
|
from texts, with optional batching.
|
|
- [NewEmbedder] creates implementations of [Embedder] from provider LLM
|
|
(or Chat) clients.
|
|
|
|
See the package example below.
|
|
*/
|
|
package embeddings
|