How amirlayegh/procurement-ai-assistant works
Procurement AI Assistant lets retail buyers search a product catalog in natural language and evaluate results using cost, margin, supplier reliability, return, sales, and revenue signals. The primary path is buyer query through a frontend to a backend search executor, which interprets the query, applies semantic and numeric/categorical criteria, and returns product results. The repository also includes a Streamlit interface and dashboard analytics. Backend wiring is supported by sampled source; frontend-to-API behavior and some documented capabilities are not shown in the excerpts.
Main entry points: app.py Search API Runtime · query.py Query Definition · page.tsx Next.js Search UI · results-list.tsx Product Results
Components 18
Buyer Interfaces
- Next.js Search UI
frontend/src/app/(main_app_layout)/page.tsx - Search Bar
frontend/src/components/search/search-bar.tsx - Search Filters
frontend/src/components/filters/filters-panel-content.tsx - Product Results
frontend/src/components/search/results-list.tsx - Product Card
frontend/src/components/search/product-card.tsx - Analytics Dashboard
frontend/src/app/(main_app_layout)/dashboard/page.tsx - Streamlit Interface
st_app/app.py
Backend Runtime
- Search API Runtime
superlinked_app/app.py - Product Ingestion
superlinked_app/app.py - Runtime Settings
superlinked_app/configs.py
Search & Ranking
- Query Definition
superlinked_app/query.py - Query Interpretation
superlinked_app/nlq.py - Semantic & Metric Index
superlinked_app/index.py
Catalog & Storage
- Product Schema
superlinked_app/schema.py - Product CSV
- Vector Store
Other components
- Retail Buyer
- Qdrant
Connections 22
- Retail Buyer → Next.js Search UI: searches
README.md - Retail Buyer → Streamlit Interface: searches
README.md - Next.js Search UI → Search API Runtime: submits queries
- Streamlit Interface → Search API Runtime: uses backend
README.md - Search Bar → Next.js Search UI: captures query
- Search Filters → Next.js Search UI: sets criteria
- Search API Runtime → Product Ingestion: registers sources
superlinked_app/app.py - Search API Runtime → Query Definition: registers query
superlinked_app/app.py - Search API Runtime → Semantic & Metric Index: registers index
superlinked_app/app.py - Product Ingestion → Product Schema: parses products
superlinked_app/app.py - Product Ingestion → Product CSV: loads CSV
superlinked_app/app.py - Search API Runtime → Runtime Settings: configures storage
superlinked_app/app.py - Search API Runtime → Vector Store: selects database
superlinked_app/app.py - Vector Store → Qdrant: connects optionally
- Query Definition → Semantic & Metric Index: queries index
superlinked_app/query.py - Query Definition → Product Schema: filters products
superlinked_app/query.py - Query Definition → Query Interpretation: uses prompt guidance
superlinked_app/query.py - Query Definition → Runtime Settings: reads model config
superlinked_app/query.py - Search API Runtime → Vector Store: serves search
README.md - Search API Runtime → Product Results: returns products
README.md - Product Results → Product Card: renders products
frontend/src/components/search/results-list.tsx - Analytics Dashboard → Search API Runtime: reads analytics
README.md