r/Rag • • 5d ago

Discussion Embedding for data retrieval

Can we use the embedding models for data retieval from the internet as if i have to retrieve the data from the job posting sites and i want that the user query should be processed properly with the user so how we are gonna do it?

1 Upvotes

4 comments sorted by

1

u/donk8r 5d ago

Embeddings rank a corpus you already have, they don't fetch live listings from job sites. Split it: pull allowed postings first via a job feed/API or search endpoint, then embed and rank those against the query (semantic search basics). Hard constraints like location work better as filters than similarity.

1

u/LLM_Expert 4d ago

+1 to splitting it. Embeddings don't fetch anything, they rank text you already have. A simple pipeline suggestion:

  1. Fetch: job-board APIs or feeds where they exist, or a web search API restricted to the boards you care about. Check each site's terms before scraping.
  2. Parse the user query into hard filters (location, remote, seniority, salary) plus a free-text part. One LLM call with a JSON schema handles this well.
  3. Filter first, then embed the remaining postings (title + requirements + summary) and rank against the free-text part. Add BM25 so exact skills like "Kubernetes" aren't blurred.
  4. Rerank the top ~50 with a cross-encoder and dedupe, since the same job appears on several boards.
  5. Keep posted/fetched dates and drop old listings; jobs go stale in days.

0

u/[deleted] 5d ago

[removed] — view removed comment

1

u/CruellyTired 5d ago

Tavily's secret sauce has semantic search baked in. no need to whip up your own embeddings, chef.