Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,6 @@ from huggingface_hub import CommitScheduler
|
|
14 |
from pathlib import Path
|
15 |
from dotenv import load_dotenv
|
16 |
|
17 |
-
|
18 |
# Create Client
|
19 |
load_dotenv()
|
20 |
|
@@ -45,7 +44,6 @@ retriever = vectorstore_persisted.as_retriever(
|
|
45 |
|
46 |
|
47 |
# Prepare the logging functionality
|
48 |
-
|
49 |
log_file = Path("logs/") / f"data_{uuid.uuid4()}.json"
|
50 |
log_folder = log_file.parent
|
51 |
|
@@ -58,8 +56,6 @@ scheduler = CommitScheduler(
|
|
58 |
)
|
59 |
|
60 |
# Define the Q&A system message
|
61 |
-
|
62 |
-
|
63 |
qna_system_message = """
|
64 |
You are an AI assistant to help Finsights Grey Inc., an innovative financial technology firm, develop a Retrieval-Augmented Generation (RAG) system to automate the extraction, summarization, and analysis of information from 10-K reports. Your knowledge base was last updated in August 2023.
|
65 |
|
|
|
14 |
from pathlib import Path
|
15 |
from dotenv import load_dotenv
|
16 |
|
|
|
17 |
# Create Client
|
18 |
load_dotenv()
|
19 |
|
|
|
44 |
|
45 |
|
46 |
# Prepare the logging functionality
|
|
|
47 |
log_file = Path("logs/") / f"data_{uuid.uuid4()}.json"
|
48 |
log_folder = log_file.parent
|
49 |
|
|
|
56 |
)
|
57 |
|
58 |
# Define the Q&A system message
|
|
|
|
|
59 |
qna_system_message = """
|
60 |
You are an AI assistant to help Finsights Grey Inc., an innovative financial technology firm, develop a Retrieval-Augmented Generation (RAG) system to automate the extraction, summarization, and analysis of information from 10-K reports. Your knowledge base was last updated in August 2023.
|
61 |
|