Skip to content

Updated the NLP - #10

Open
LeeJiaFong wants to merge 2 commits into
testfrom
nlp_v2
Open

Updated the NLP#10
LeeJiaFong wants to merge 2 commits into
testfrom
nlp_v2

Conversation

@LeeJiaFong

Copy link
Copy Markdown
Collaborator

What changed

  • Wired up AI parsing in the Create Post modal — users can now describe what they need/offer in plain text and the AI fills the form automatically
  • Handles multi-category inputs (e.g. "I need food and medicine") by queuing each category as a separate entry for review
  • Added loading state, error handling, and entry progress indicator
  • Fixed bugs in parseAidInput: wrong model name, JSON fence stripping, embedder race condition
  • Tightened AI prompt so titles and descriptions stay concise

Setup for reviewers

  1. Run npm install
  2. Create a .env file in the project root and add:
    VITE_GEMINI_API_KEY=your_key_here
  3. Get your free key at https://aistudio.google.com/app/apikey
  4. Run npm run dev

LeeJiaFong and others added 2 commits March 13, 2026 11:13
…pt tuning

Setup: run 'npm install' — also create a .env file and add: VITE_GEMINI_API_KEY=your_key_here — get your free key at https://aistudio.google.com/app/apikey
…se function for parsing aid input

- move prompt builder, API calling etc to Supabase edge function
- update parseAidInput function to invoke edge function
- uninstall unused packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants