@@ -235,8 +235,8 @@ func (s *Store) NodesForEmbedding() []model.Node {
|
||||
return s.NodesForEmbeddingScoped(NodeFilter{})
|
||||
}
|
||||
|
||||
func (s *Store) NodesForEmbeddingFiltered(categories []string) []model.Node {
|
||||
return s.NodesForEmbeddingScoped(NodeFilter{Categories: categories})
|
||||
func (s *Store) NodesForEmbeddingFiltered(sources []string) []model.Node {
|
||||
return s.NodesForEmbeddingScoped(NodeFilter{Sources: sources})
|
||||
}
|
||||
|
||||
func (s *Store) NodesForEmbeddingScoped(filter NodeFilter) []model.Node {
|
||||
@@ -547,12 +547,12 @@ func (s *Store) NextPair(min float64, anchorLimit int) (model.Node, model.Node,
|
||||
return s.NextPairFiltered(min, anchorLimit, nil)
|
||||
}
|
||||
|
||||
func (s *Store) NextPairFiltered(min float64, anchorLimit int, categories []string) (model.Node, model.Node, float64, bool, int) {
|
||||
return s.NextPairFilteredDepth(min, anchorLimit, categories, 0)
|
||||
func (s *Store) NextPairFiltered(min float64, anchorLimit int, sources []string) (model.Node, model.Node, float64, bool, int) {
|
||||
return s.NextPairFilteredDepth(min, anchorLimit, sources, 0)
|
||||
}
|
||||
|
||||
func (s *Store) NextPairFilteredDepth(min float64, anchorLimit int, categories []string, maxAIDepth int) (model.Node, model.Node, float64, bool, int) {
|
||||
return s.NextPairScopedDepth(min, anchorLimit, NodeFilter{Categories: categories}, maxAIDepth)
|
||||
func (s *Store) NextPairFilteredDepth(min float64, anchorLimit int, sources []string, maxAIDepth int) (model.Node, model.Node, float64, bool, int) {
|
||||
return s.NextPairScopedDepth(min, anchorLimit, NodeFilter{Sources: sources}, maxAIDepth)
|
||||
}
|
||||
|
||||
func (s *Store) NextPairScopedDepth(min float64, anchorLimit int, filter NodeFilter, maxAIDepth int) (model.Node, model.Node, float64, bool, int) {
|
||||
|
||||
Reference in New Issue
Block a user