@@ -86,8 +86,9 @@ func (e *Engine) researchEvidenceForSources(sources []articleSource) []model.Res
|
||||
return nil
|
||||
}
|
||||
nodes := make([]model.Node, 0, len(externalIDs))
|
||||
filter := e.effectiveThinkingFilter()
|
||||
for _, node := range snapshot.Nodes {
|
||||
if externalIDs[node.ID] && node.Kind == "external" {
|
||||
if externalIDs[node.ID] && node.Kind == "external" && filter.Matches(node) {
|
||||
nodes = append(nodes, node)
|
||||
}
|
||||
}
|
||||
@@ -199,7 +200,7 @@ func (e *Engine) learnResearchEvidence(ctx context.Context, results []model.Rese
|
||||
for _, result := range results {
|
||||
id := graph.ID("external", result.URL)
|
||||
node, ok := e.Graph.GetNode(id)
|
||||
if !ok || !matchesCategories(node, e.learningCategories()) {
|
||||
if !ok || !e.effectiveLearningFilter().Matches(node) {
|
||||
continue
|
||||
}
|
||||
content := strings.TrimSpace(result.Content)
|
||||
|
||||
Reference in New Issue
Block a user