Documentation
¶
Index ¶
Constants ¶
View Source
const ( QrySequenceKnn = "" /* 178-byte string literal not displayed */ QryFindMediaById = "SELECT * from `%s` WHERE id = '%s'" QryGetSegment = "SELECT sequence, start, `end`, script FROM `%s`, UNNEST(segments) as s WHERE id = '%s' and s.sequence = %d" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MediaService ¶
func (*MediaService) GetFQN ¶
func (s *MediaService) GetFQN() string
GetFQN returns the fully qualified BQ Table Name
func (*MediaService) GetSegment ¶
func (s *MediaService) GetSegment(ctx context.Context, id string, segmentSequence int) (segment *model.Segment, err error)
GetSegment returns a segment in a specified media type by its sequence number
type SearchService ¶
type SearchService struct {
BigqueryClient *bigquery.Client
EmbeddingModel *genai.Models
ModelName string
DatasetName string
MediaTable string
EmbeddingTable string
}
func (*SearchService) FindSegments ¶
func (s *SearchService) FindSegments(ctx context.Context, query string, maxResults int) (out []*model.SegmentMatchResult, err error)
Click to show internal directories.
Click to hide internal directories.