ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

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) ListCandidatesForIntel(ctx context.Context, limit int32) ([]Candidate, error)”. It specifies the displayed…

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-79164d2b1f16c5dasource-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 “func (q *Queries) ListCandidatesForIntel(ctx context.Context, limit int32) ([]Candidate, error)”. 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
	ExternalID           *string          `json:"external_id"`
	AnonymizedAt         *time.Time       `json:"anonymized_at"`
	ClearanceProvenance  string           `json:"clearance_provenance"`
	ClearanceVerifiedAt  *time.Time       `json:"clearance_verified_at"`
	RrfScore             float64          `json:"rrf_score"`
}

// 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.
// Every ORDER BY carries a unique tiebreaker (id) so results are byte-stable for fixed inputs, the
// AEDT reproducibility mandate [review SQLC-2/PGV-1/PGV-2]. Caller SETs LOCAL hnsw.ef_search first.
func (q *Queries) SearchCandidatesHybrid(ctx context.Context, arg SearchCandidatesHybridParams) ([]SearchCandidatesHybridRow, error) {
	rows, err := q.db.Query(ctx, searchCandidatesHybrid, arg.Column1, arg.Limit, arg.WebsearchToTsquery)
	if err != nil {
		return nil, err
	}
	defer rows.Close()
	items := []SearchCandidatesHybridRow{}
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

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…

06

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)…

07

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…

08

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)…

09

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…

10

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)…

11

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…

12

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)…

Sources & provenance

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