Skip to content

Commit 86c4a1d

Browse files
Added eu example
1 parent 80e7d8a commit 86c4a1d

File tree

8 files changed

+46
-6
lines changed

8 files changed

+46
-6
lines changed

customizations/logo/datastax.svg

Lines changed: 15 additions & 0 deletions
Loading

customizations/logo/eu.png

119 KB
Loading

customizations/prompt/eu.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
You're a top of the bill legal advisor helping users understand the rules for DG GROW using relevant context. Mention references if possible.
2+
3+
Use this context:
4+
{context}
5+
6+
Use this chat history:
7+
{chat_history}
8+
9+
Question:
10+
{question}

customizations/rails.csv

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ uniphore,3,Tell me more about why Uniphore Q is the best product!
2020
uniphore,4,Write an email for a prospect
2121
uniphore,5,What advantages does Uniphore Q offer?
2222
uniphore,6,What strategies exists for meaningful seller and buyer interaction
23-
uniphore,7,How can I integrate Uniphore Q with enterprise applications?
23+
uniphore,7,How can I integrate Uniphore Q with enterprise applications?
24+
25+
eu,1,What is DS GROW about?
26+
eu,2,What does single market mean?
27+
eu,3,What are the aims?
28+
eu,4,How can I apply for emergency measures?

customizations/welcome/datastax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Generative AI is considered to bring the next Industrial Revolution as studies show a **37% efficiency boost** in day to day work activities!
33

44
#### DATA = AI
5-
The most important differentiator in Qualitative Generative AI is Data. There is no AI without Data! Read this [in-depth article by Michel de Ru](https://docs.google.com/document/d/1HKc5sGosR2_SilxJ4aDqU9FxqtpNlkrtB70SybmEQ4A/edit#heading=h.wak20xcv3doz). It's your data that provides a Sustainable Competitive Advantage.
5+
The most important differentiator in Qualitative Generative AI is Data. There is no AI without Data! Read this [in-depth article by Michel de Ru](https://datastax.medium.com/with-generative-ai-context-is-king-7a1469942044). It's your data that provides a Sustainable Competitive Advantage.
66

77
#### DataStax Astra DB
88
Providing the best data at the highest performance for Generative AI is done by using [DataStax Astra DB](https://db.new) as is underscored in [an independant research by GigaOM](https://www.datastax.com/resources/report/gigaom-study-vector-databases-compared).

customizations/welcome/default.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Generative AI is considered to bring the next Industrial Revolution as studies show a **37% efficiency boost** in day to day work activities!
33

44
#### DATA = AI
5-
The most important differentiator in Qualitative Generative AI is Data. There is no AI without Data! Read this [in-depth article by Michel de Ru](https://docs.google.com/document/d/1HKc5sGosR2_SilxJ4aDqU9FxqtpNlkrtB70SybmEQ4A/edit#heading=h.wak20xcv3doz). It's your data that provides a Sustainable Competitive Advantage.
5+
The most important differentiator in Qualitative Generative AI is Data. There is no AI without Data! Read this [in-depth article by Michel de Ru](https://datastax.medium.com/with-generative-ai-context-is-king-7a1469942044). It's your data that provides a Sustainable Competitive Advantage.
66

77
#### DataStax Astra DB
88
Providing the best data at the highest performance for Generative AI is done by using [DataStax Astra DB](https://db.new) as is underscored in [an independant research by GigaOM](https://www.datastax.com/resources/report/gigaom-study-vector-databases-compared).

customizations/welcome/eu.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### Your DG GROW Sidekick
2+
Welcome to the DG GROW Chatbot, your virtual assistant dedicated to providing you with detailed information and support regarding the Directorate-General for Internal Market, Industry, Entrepreneurship, and SMEs. Whether you're an entrepreneur, a small business owner, or simply an interested citizen, our chatbot is here to help you navigate the complexities of the EU's Single Market and the various programs and initiatives that DG GROW offers.
3+
4+
#### Single Market Programme
5+
With our chatbot, you can easily access information about the Single Market Programme, consumer protection standards, and the latest strategies for industrial ecosystems. The chatbot is designed to answer your questions on how DG GROW's policies and programs can support economic growth, innovation, and the digital transformation of businesses. It's an invaluable tool for staying informed about the efforts being made to ensure the EU economy is sustainable, competitive, and resilient.
6+
7+
#### Impact on your daily life!
8+
Our chatbot is user-friendly and available 24/7, ensuring that you can get the assistance you need at any time. Whether you're seeking guidance on EU regulations for your business, looking for funding opportunities, or curious about the impact of DG GROW's work on your daily life, our chatbot is here to provide you with timely and accurate information. Engage with our chatbot today to discover how DG GROW is shaping a stronger and more integrated European economy.
9+
10+
---

streamlit_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ def vectorize_url(urls):
168168
print (f"Loading from URL: {pages}")
169169
vectorstore.add_documents(pages)
170170
st.info(f"{len(pages)} loaded")
171-
except:
172-
st.info(f"An error occurred", )
171+
except Exception as e:
172+
st.info(f"An error occurred:", e)
173173

174174
# Define the prompt
175175
def get_prompt(type):
@@ -352,7 +352,7 @@ def load_embedding():
352352
# Cache Vector Store for future runs
353353
@st.cache_resource(show_spinner=lang_dict['load_vectorstore'])
354354
def load_vectorstore(username):
355-
print("load_vectorstore")
355+
print(f"load_vectorstore for {username}")
356356
# Get the load_vectorstore store from Astra DB
357357
return AstraDB(
358358
embedding=embedding,

0 commit comments

Comments
 (0)