-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
31 lines (24 loc) · 1.24 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import os
import specialsitsai as ssai
import structlog
if __name__ == "__main__":
logger = structlog.get_logger(__name__)
logger.info("logging")
oddlot_folder = "/Users/ignaciomoyaredondo/OneDrive/obsidian/01_projects/secedgarspecial/db_oddlots/html"
# Parse the HTML files
html_files = ssai.HTMLHandler(oddlot_folder).process_html_files()
#html_file = [file for file in html_files if "MNST" in file["source"]]
html_file = [file for file in html_files if "MNST" in file["source"]]
#MSCF not reading well
# Set up the RAG system
#rag = ssai.RAGSystem(html_file, use_local=False, embedding_context=False)
#print(rag.query_oddlot_details())
#chatbot = ssai.Chatbot(rag)
#chatbot.start_chat()
#spinoff_folder = "/Users/ignaciomoyaredondo/OneDrive/obsidian/01_projects/secedgarspecial/db_spinoffs/html"
#html_files = ssai.HTMLHandler(spinoff_folder).process_html_files()
#html_file = [file for file in html_files if "SEG" in file["source"]]
#print(html_file)
#print(ssai.RAGSystem(html_file, use_local=False).ask_from_docs(
# "Tell me the basic information of the spinoff (parent company and spinoff company) and other financial relevant information in no more than 400 words")
#)