-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi Krishnan!
I used the dataset you provided and the following command line to run the entity and cypher codes, but the model I ran out of could not answer the questions you asked in Excel, and I couldn't search for them. Is there something wrong with my command line? How did you run it and what was the result?
My command line is as follows:
1. Building Vector Store for Baseline Methods
python -m scripts.build_baseline_vectordb --docs-dir data/sec-10-q/docs --collection-name sec_10q --persist-dir chroma_db --verbose
2. Building Knowledge Graphs
python -m scripts.build_entity_graph --docs-dir data/sec-10-q/docs --output-dir data/graphs --graph-name sec10q_entity_graph --verbose
cypher graph
python -m scripts.build_cypher_graph --docs-dir data/sec-10-q/docs --output-dir data/graphs --graph-docs-name sec10q_cypher_graph --verbose
3. Running Interactive Query Mode
To interactively query using baseline methods:
python -m scripts.run_baseline_rag --collection-name sec_10q --persist-dir chroma_db --model gpt-4o --verbose
To interactively query using KG-RAG methods:
python -m scripts.run_entity_rag --graph-documents-pkl-path data/graphs/sec10q_entity_graph_documents.pkl --verbose
run cypher
python -m scripts.run_cypher_rag --verbose
The questions answered are as follows, and all KGs show no results:
How has Apple's total net sales changed over time?
What are the major factors contributing to the change in Apple's gross margin in the most recent 10-Q compared to the previous quarters?
Has there been any significant change in Apple's operating expenses over the reported quarters? If so, what are the key drivers for this change?