You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to the Azure OpenAI RAG Demo Suite. On the left side-panel, you will find various demonstrations that showcase the capabilities of Azure OpenAI with a Streamlit frontend. Each demonstration is described in detail below, highlighting their unique features and functionalities.
19
+
""")
20
+
21
+
# Horizontal divider
22
+
st.markdown("---")
23
+
24
+
# Chat with Your Data section
25
+
st.markdown("### Chat with Your Data using Azure OpenAI API and AI Search Index (AI Search Query)")
26
+
st.write("""
27
+
This demo allows users to interact with data stored in their Azure AI Search Index using a combination of semantic and vector search methods.
28
+
""")
29
+
st.write("""
30
+
- **Semantic Search**: Understands the meaning and context of your queries to deliver more relevant results.
31
+
- **Vector Search**: Utilizes numerical representations of text to find similar content based on cosine similarity.
32
+
""")
33
+
# Ensure the user has created the Azure AI search index already
34
+
st.write("""
35
+
**Note**: Users must have created the Azure AI search index already as shown here: [Upload your own data and query over it](https://github.com/STRIDES/NIHCloudLabAzure/blob/main/notebooks/GenAI/Azure_Open_AI_README.md)
36
+
""")
37
+
38
+
# Horizontal divider
39
+
st.markdown("---")
40
+
41
+
# Generate & Search with Azure OpenAI Embeddings section
42
+
st.markdown("### Generate & Search with Azure OpenAI Embeddings (AOAI Embeddings)")
43
+
st.write("""
44
+
This demo enables users to generate embeddings from a pre-chunked CSV file and perform searches over the content using vector search.
45
+
""")
46
+
st.write("""
47
+
- **Vectorize**: Creates embeddings based on the "microsoft-earnings.csv" file provided in this directory. The embeddings are generated from the "text" column. The CSV file is pre-chunked, meaning the text has already been split and prepared for embedding generation. A new CSV file will be created to store all generated embeddings, forming your vector store.
48
+
- **Retrieve**: Generates embeddings based on user queries. The query embedding is then used to search for the most similar document within the vector store using cosine similarity.
49
+
""")
50
+
st.write("""
51
+
Example questions a user can ask about the microsoft-earnings.csv:
52
+
- What was said about the budget?
53
+
- How many people utilize GitHub to build software?
54
+
- How many points did Microsoft Cloud gross margin percentage increase by?
st.write('This demo showcases an innovative way for users to engage with data housed in their Azure AI Search Index by leveraging both \
87
+
semantic and vector search techniques. Semantic search enhances the querying process by comprehending the meaning and context of \
88
+
user queries, thereby providing more pertinent results. Vector search, on the other hand, employs numerical representations of \
89
+
text to identify similar content using cosine similarity. ***For users to effectively utilize this demo, it is essential that they \
90
+
have previously created their Azure AI Search Index, following the necessary steps to upload and query their data as outlined [here](https://github.com/STRIDES/NIHCloudLabAzure/blob/main/notebooks/GenAI/Azure_Open_AI_README.md).***')
91
+
if'messages'notinst.session_state:
92
+
st.session_state.messages= []
93
+
index_name=st.text_input(label="Azure AI Search index name:", value="")
0 commit comments