Semantic search, leverages natural language processing and machine learning to understand the intent and context behind a search query. It considers the meaning, relationships, and concepts associated with the words we use, resulting in more precise and meaningful search results.
Traditional search engines rely on keyword matching, which often leads to irrelevant or inaccurate results.
- OpenAI API Key
- Pinecone Database ENV and KEY
- Create an index in pinecone with cosine metric of 1536 dimensions
- Clone the repo
- Run
npm installto install all the dependencies - Create a
.env.localfromenv-examplefile:cp env-example .env.local - Update the OpenAI and Pinecone keys in the
.env.localfile - Run
npm run devto start the project - This project has around 100 ingredients in the
constants.jsfile. To upload those in the Pinecone Database, make an HTTP GET call to/api/process. This will take few seconds to update Pinecone Database. (You can move this route to a script as well.)
- NextJS
- TailwindCSS
- Pinecone
