Documentation ¶
Overview ¶
Package nba provides facilities for vectorizing NBA data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Player ¶
type Player struct { Embedding pgvector.Vector // contains filtered or unexported fields }
A Player represents an NBA player.
func NearestPlayer ¶
func NearestPlayer(ctx context.Context, c *api.Client, conn *pgx.Conn, question string) (Player, error)
NearestPlayer returns the player whose embedding is closest to the given question.
func (*Player) GenerateEmbeddings ¶
GenerateEmbeddings generates player embeddings.
Click to show internal directories.
Click to hide internal directories.