-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstempath_cli.py
More file actions
33 lines (23 loc) · 831 Bytes
/
Copy pathstempath_cli.py
File metadata and controls
33 lines (23 loc) · 831 Bytes
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
32
33
from src.core import StemPathCore
def main():
core = StemPathCore()
core.ensure_ready()
print("\nStemPATH-AI Career Research Assistant")
print("Type 'exit' or 'quit' to stop.\n")
while True:
user_input = input("Question: ").strip()
if user_input.lower() in ("exit", "quit"):
break
if not user_input:
continue
print("\nSearching career documents and graph context...\n")
answer, results = core.query(user_input)
if not answer:
print("No relevant career data found.\n")
continue
print(f"Top {len(results)} career matches:")
for result in results:
print(f" [{result['score']:.4f}] {result['title']}")
print(f"\n Answer:\n{answer}\n")
if __name__ == "__main__":
main()