Simple Azure Search
The simplest possible front end search box and results rendering for an Azure Cognitive Search app, utilising streamlit and dotenv to keep it down to a single Python script.
Prerequisites
Ensure you have the following installed:
-
Python 3 (project was built with 3.8. This specific version may not be required, but 3.8+ is recommended.)
-
Pip (Python package installer, should be installed with Python 3.)
Usage
Clone the repo.
git clone <repo-url> && cd simpleazuresearch
In your preferred environment, run:
pip3 install -r requirements.txt
Copy and paste the contents of .env-dev
into a file named .env
(which is git ignored).
Fill out .env
with the details of your project and Azure resources.
Note: these are secrets and you should ensure you do not commit this file to version control.
Run:
streamlit run ui.py
Then open your browser and search away!