An open API service indexing awesome lists of open source software.

https://github.com/easonlai/product_semantic_search_streamlit

This code repo demonstrates how to use the word embedding model from Azure OpenAI Service to perform a semantic search on a grocery store dataset. This enhanced/completed version used Streamlit to build a web user experience to semantic search and display the most relevant items
https://github.com/easonlai/product_semantic_search_streamlit

azure azure-openai azure-openai-api product-search python python3 semantic-search streamlit streamlit-webapp text-embedding word-embeddings

Last synced: 3 months ago
JSON representation

This code repo demonstrates how to use the word embedding model from Azure OpenAI Service to perform a semantic search on a grocery store dataset. This enhanced/completed version used Streamlit to build a web user experience to semantic search and display the most relevant items

Awesome Lists containing this project

README

          

# Product Semantic Search with Streamlit UI by Azure OpenAI Embedding model (text-embedding-ada-002)

In past code repo, ["Semantic Search by Azure OpenAI Embedding model (text-embedding-ada-002)"](https://github.com/easonlai/azure_openai_semantic_search_sample), it demonstrates how to use the word embedding model from [Azure OpenAI Service](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/overview) to perform a semantic search on a grocery store dataset. The dataset contains 50 items with their names only. The [word embedding model (text-embedding-ada-002)](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/concepts/models#embeddings-models-1) converts the items and search terms into high-dimensional vectors and computes their cosine similarity.

This enhanced/completed version used [Streamlit](https://streamlit.io/) to build a web user experience to semantic search and display the most relevant items.

![alt text](https://github.com/easonlai/product_semantic_search_streamlit/blob/main/git-images/git-image-1.png)

To run this Streamlit web app
```
streamlit run app.py
```

Enjoy!