Repository navigation
Conversation
Three new food-data sources, each idempotent and tested on real rows: - cnf: the Canadian Nutrient File 2015 (5,690 foods), with French names and CNF's measures as servings - ciqual: the ANSES-CIQUAL table 2025 (3,341 foods with energy), streamed from its XML files on Recherche Data Gouv, with French names - fineli: Fineli release 20, basic package 2 (4,231 foods with energy), with Finnish and Swedish names and Fineli's units as servings Health Canada's and Fineli's sites refuse servers, so their release zips are kept unchanged in packages/food-data/data and checked by SHA-256. The Food data workflow can run all three.
Search scored a food against its search text, which joins every name
("chocolate croissant ... pain au chocolat"), so a national table's food
found by its French or Finnish name ranked below a product named exactly
that. It now also scores each name on its own.
Duplicates by name and brand were removed after the limit, so 60
products called "Baguette" filled it and left 3 results. They're now
removed in the query, before the limit.
Food data sources lists CNF, CIQUAL and Fineli with the credit and licence each asks for. ROADMAP, the plan, trust and safety and the README describe the new imports.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to Phase 7: the three national food tables that were waiting for their files, plus a search fix they exposed.
Importers (
packages/food-data)cnfciqualfinelipackages/food-data/data/(7 MB) and checked by SHA-256 before every import. Seedata/README.md.cnf,ciqualandfineli.Search (
packages/backend)App and docs
Checks
After merging
Once the
DIRECT_URLsecret is set, run the Food data workflow forfdc,cofid,cnf,ciqualandfineli. Together they take about 170 MB, within the Free plan.