ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

querier

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “querier”. It specifies the displayed relationship between the named quantities or parameters. Its interpretation depends on the…

Implementation mathematicsSource recovered; runtime not executed
Learn with the Atlas

Learn to read this model

Start with the symbols, follow the operations, and check what the result means.

Open guided lesson
gh-eq-135d0a69f62ceaabsource-comment-equation
Hybridretrieval:pgvectorcosinekNNfusedwithfull−textrankviaReciprocalRankFusion(k=60).Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion (k=60).

Read the equation

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “querier”. It specifies the displayed relationship between the named quantities or parameters. Its interpretation depends on the source’s stated variables and conditions; this record does not assign an unprovided physical or cognitive meaning to them.

Terms & definitions

The recovered passage does not supply a separate symbol table. Read the source context for the notation used in this version; familiar letters may carry different meanings in other builds.

How it works

  1. Read Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion as the quantity being defined or updated by this relation.

  2. Substitute the source-defined variables or recorded values and follow the displayed arithmetic and indexing exactly.

  3. Use this version’s variable definitions and update order. The same symbol may be assigned a different meaning in another build.

Assumptions & limits

  • This source expression was recovered from the pinned code revision. Its presence does not establish that the associated program was built, run, or scientifically validated.

Original context

Read the surrounding source passage
	// for GET /proposal-readiness [review COMPL-2]. RLS scopes all three tables to the caller's org.
	ProposalReadiness(ctx context.Context, opportunityID *uuid.UUID) ([]ProposalReadinessRow, error)
	// Candidates whose most recent recorded decision is older than the retention window and whose PII is
	// not yet anonymized. The de identified slate_members outcomes are retained; only the candidate PII is
	// wiped (by AnonymizeCandidate). RLS scopes this to the caller's org.
	RetentionDueCandidates(ctx context.Context, dollar_1 int32) ([]uuid.UUID, error)
	SamSyncMeta(ctx context.Context) (SamSyncMetaRow, error)
	// Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion (k=60).
	// RLS already scopes both legs to the caller's org. $1=query embedding, $2=limit, $3=text query.
	// The vector arm is MATERIALIZED so the relaxed_order HNSW output is re-sorted by TRUE cosine distance
	// before it is ranked: under hnsw.iterative_scan = relaxed_order the index returns rows slightly out of
	// distance order, and ranking them without the re-sort would mis-rank the nearest neighbors at scale
	// (pgvector 0.8 README; AWS pgvector 0.8 Aurora guidance). Every ORDER BY carries a unique tiebreaker
	// (id) so results are byte-stable for fixed inputs, the AEDT reproducibility mandate. The caller SETs
	// LOCAL hnsw.ef_search and hnsw.iterative_scan first.
	SearchCandidatesHybrid(ctx context.Context, arg SearchCandidatesHybridParams) ([]SearchCandidatesHybridRow, error)
	// Cosine nearest-neighbor over the skills ontology (powers semantic skill adjacency).
	SearchSkillsSemantic(ctx context.Context, arg SearchSkillsSemanticParams) ([]SearchSkillsSemanticRow, error)
Exact original notation
Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion (k=60).

Related builds

Related mathematical records

01

func (q *Queries) ListCandidatesScoped(ctx context.Context, arg ListCandidatesScopedParams) ([]Candidate, error)

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “func (q *Queries) ListCandidatesScoped(ctx…

02

querier

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “querier”. It specifies the displayed…

03

func (q *Queries) ListCandidatesForIntel(ctx context.Context, limit int32) ([]Candidate, error)

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “func (q *Queries)…

04

querier

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “querier”. It specifies the displayed…

05

func (q *Queries) ListCandidatesForIntel(ctx context.Context, limit int32) ([]Candidate, error)

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “func (q *Queries)…

06

querier

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “querier”. It specifies the displayed…

07

func (q *Queries) ListCandidatesForIntel(ctx context.Context, limit int32) ([]Candidate, error)

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “func (q *Queries)…

08

querier

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “querier”. It specifies the displayed…

09

func (q *Queries) ListCandidatesForIntel(ctx context.Context, limit int32) ([]Candidate, error)

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “func (q *Queries)…

10

querier

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “querier”. It specifies the displayed…

11

func (q *Queries) ListCandidatesForIntel(ctx context.Context, limit int32) ([]Candidate, error)

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “func (q *Queries)…

12

querier

This relation defines Hybrid retrieval: pgvector cosine kNN fused with full-text rank via Reciprocal Rank Fusion in the source section “querier”. It specifies the displayed…

Sources & provenance

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