Skip to content

Commit

Permalink
Merge pull request #80 from h2oai/update_company_overview
Browse files Browse the repository at this point in the history
Update company overview to reflect h2ogpte 1.5.10
  • Loading branch information
sukanya-joshi authored Aug 13, 2024
2 parents 8018e07 + 3324d81 commit a646aea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion company-financial-overview/app.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[App]
Name = "ai.h2o.wave.company_info_at_a_glance"
Version = "0.0.6"
Version = "0.0.7"
Title = "Company Information"
Description = "Use AI to research companies and identify opportunities"
Tags = ["GENERATIVE_AI", "DATA_SCIENCE", "OSS"]
Expand Down
2 changes: 1 addition & 1 deletion company-financial-overview/prompts/competitor_prompt.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Who are the main competitors for the company provided? Can you list them by market cap and number of employees?
Who are the main competitors for the company provided? Please list them by market cap and number of employees?
2 changes: 1 addition & 1 deletion company-financial-overview/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h2ogpte==1.4.9
h2ogpte==1.5.10
h2o_wave
loguru
toml
4 changes: 2 additions & 2 deletions company-financial-overview/src/generate_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def stream_response(message):
client = H2OGPTE(address=os.getenv("H2OGPTE_URL"), api_key=os.getenv("H2OGPTE_API_TOKEN"))

collection_id = client.create_collection("Temp for Company Financial Overview", "")
chat_session_id = client.create_chat_session(collection_id)
chat_session_id = client.create_chat_session(collection_id=collection_id)
print("USER MESSSAGEEEEE", chatbot_interaction.user_message)
with client.connect(chat_session_id) as session:
session.query(
Expand Down Expand Up @@ -159,6 +159,6 @@ def update_response(self, message):
self.content_to_show = message.content
self.responding = False
elif isinstance(message, PartialChatMessage):
if message.content != "#### LLM Only (no RAG):\n":
if message.content != "#### LLM Only:\n":
self.llm_response += message.content
self.content_to_show = self.llm_response + " 🟡"

0 comments on commit a646aea

Please sign in to comment.