ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/missionmatch / internal/modules/matching/skillmatcher.go

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/missionmatch / internal/modules/matching/skillmatcher.go
DateNot specified in source
RepositoryJanady13/missionmatch
Revision09015496d565a172bcaa15cfe9a8e4b072b13df0
Branchworkstream-b-screenmatch
Path or archive memberinternal/modules/matching/skillmatcher.go
Original SHA-256c2e57f3998fdb51512146793c08673a94373881fc12d96b23a774069faece045
Git blob SHAc9bc41bd9a3ae9ba7215f8b9d749e9927f1a3922
Reading-copy SHA-256c2e57f3998fdb51512146793c08673a94373881fc12d96b23a774069faece045

Original source ↗

Every recorded occurrence

These 23 records contain identical original source bytes. Their paths and revisions remain part of the archive.

Original recordBranch or archiveRevision / identifierOriginal location
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-b-screenmatch09015496d565a172bcaa15cfe9a8e4b072b13df0Open original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-a-opportunity-intelligence1675031db74316e100782d063e9eda1a597fe3a1Open original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-d-command-center255e7d1d420abf5e277d0cd8c9b14f6f72b6acb9Open original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-d-missionmatch3be46ba89edb737182075a2b320509b42dc916f8Open original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-e-dataflow-deploy433815a042f9741411e60fa553fe72143e9b10dbOpen original
Janady13/missionmatch / internal/modules/matching/skillmatcher.gow3-ai-staffing-recommendations43d56387270ef4da4cabd794d97ca6a49909bc7dOpen original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-e-commercial-stubs4437da660539284a400ee380b9b427a300c369eeOpen original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-c-slatematch5cd60c918301b46ecd6ed3e03e20c395da0062e2Open original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goai-intelligence-layer5d5ddff70393a197c5f54a45280bb5dd42b24755Open original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goruthless-debug-sweepb7d742f8f032984be3817efffa3eb8b13b651c1fOpen original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-b-sam-contract-awardsd5101cceb98e70000cebb31d3e7ac73d747d3a6dOpen original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-a-shared-coree0de03ac3a1ec826bd15d0e048e3b02baa23eeffOpen original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-c-slatematch5cd60c918301b46ecd6ed3e03e20c395da0062e2Open original
Janady13/missionmatch / internal/modules/matching/skillmatcher.gow3-ai-staffing-recommendations43d56387270ef4da4cabd794d97ca6a49909bc7dOpen original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-d-command-center255e7d1d420abf5e277d0cd8c9b14f6f72b6acb9Open original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-e-dataflow-deploy433815a042f9741411e60fa553fe72143e9b10dbOpen original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goruthless-debug-sweepb7d742f8f032984be3817efffa3eb8b13b651c1fOpen original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goai-intelligence-layer5d5ddff70393a197c5f54a45280bb5dd42b24755Open original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-a-opportunity-intelligence1675031db74316e100782d063e9eda1a597fe3a1Open original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-b-screenmatch09015496d565a172bcaa15cfe9a8e4b072b13df0Open original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-e-commercial-stubs4437da660539284a400ee380b9b427a300c369eeOpen original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-d-missionmatch3be46ba89edb737182075a2b320509b42dc916f8Open original
Janady13/missionmatch / internal/modules/matching/skillmatcher.goworkstream-b-sam-contract-awardsd5101cceb98e70000cebb31d3e7ac73d747d3a6dOpen original

Recovered source transcript

package matching import ( "context" "github.com/shopspring/decimal" "github.com/missionworkforce/missionmatch/internal/modules/matching/engine" "github.com/missionworkforce/missionmatch/internal/platform/embeddings" ) // EmbeddingSkillMatcher implements engine.SkillMatcher using the embedding provider: it embeds the // required skill name and each candidate skill name and picks the best cosine match at/above the // engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. // // This is the semantic ("synonyms / adjacent skills") layer the engine defers to AFTER exact match. // With the deterministic offline embedder, unrelated skills score near zero, so it never invents a // false semantic match, exact matching still dominates. Determinism follows from the embedder's. type EmbeddingSkillMatcher struct { embedder embeddings.Embedder } // NewEmbeddingSkillMatcher wraps an embedder as an engine.SkillMatcher. func NewEmbeddingSkillMatcher(e embeddings.Embedder) *EmbeddingSkillMatcher { return &EmbeddingSkillMatcher{embedder: e} } // Match satisfies engine.SkillMatcher. It returns the candidate skill side and the similarity; the // engine owns the required-side identity and the match flags. ctx is the request context, so an // embedding provider call respects the request deadline and cancellation (it is never stored). // // The float dot product picks the single best candidate (ordering ties are astronomically unlikely // and never change the met/unmet outcome), but the at or above threshold DECISION is made in decimal // on the similarity rounded to a fixed scale, so the boundary outcome is reproducible across // architectures, on the engine's determinism path. func (m *EmbeddingSkillMatcher) Match(ctx context.Context, required engine.RequiredSkill, cands []engine.CandidateSkill, threshold decimal.Decimal) (engine.SkillMatch, bool) { if m == nil || m.embedder == nil || len(cands) == 0 { return engine.SkillMatch{}, false } rv, err := m.embedder.Embed(ctx, required.Name) if err != nil { return engine.SkillMatch{}, false } bestSim := -2.0 var best engine.CandidateSkill found := false for _, cs := range cands { cv, err := m.embedder.Embed(ctx, cs.Name) if err != nil || len(cv) != len(rv) { continue } if sim := dot(rv, cv); sim > bestSim { bestSim, best, found = sim, cs, true } } if !found { return engine.SkillMatch{}, false } sim := decimal.NewFromFloat(bestSim).Round(4) if sim.LessThan(threshold) { return engine.SkillMatch{}, false } return engine.SkillMatch{ CandidateSkillID: best.SkillID, CandidateName: best.Name, Similarity: sim, Matched: true, }, true } func dot(a, b []float32) float64 { var s float64 for i := range a { s += float64(a[i]) * float64(b[i]) } return s }

Mathematical records from this source

01

skillmatcher

This relation defines engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. in the source section “skillmatcher”. It specifies the displayed…

02

skillmatcher

This relation defines engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. in the source section “skillmatcher”. It specifies the displayed…

03

skillmatcher

This relation defines engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. in the source section “skillmatcher”. It specifies the displayed…

04

skillmatcher

This relation defines engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. in the source section “skillmatcher”. It specifies the displayed…

05

skillmatcher

This relation defines engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. in the source section “skillmatcher”. It specifies the displayed…

06

skillmatcher

This relation defines engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. in the source section “skillmatcher”. It specifies the displayed…

07

skillmatcher

This relation defines engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. in the source section “skillmatcher”. It specifies the displayed…

08

skillmatcher

This relation defines engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. in the source section “skillmatcher”. It specifies the displayed…

09

skillmatcher

This relation defines engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. in the source section “skillmatcher”. It specifies the displayed…

10

skillmatcher

This relation defines engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. in the source section “skillmatcher”. It specifies the displayed…

11

skillmatcher

This relation defines engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. in the source section “skillmatcher”. It specifies the displayed…

12

skillmatcher

This relation defines engine's threshold. Vectors from the provider are L2-normalized, so cosine == dot product. in the source section “skillmatcher”. It specifies the displayed…

Search equations, builds, manuscript text, and recovered sources.