the experimental code
python3 list_terms.py --n <how many terms> --model (llama3|qwen2)
python3 create_nym_web.py --output <path/to/output/cypher>
import graph database into neo4j
cat output.cypher | cypher-shell -a <host> -u <username> -p <password> -d <database>
python3 create_vector_db.py --host <host> --username <username> --password <password> --database <database> --output <path/to/vectordb>
prebuilt vectordb | url |
---|---|
vectordb.tar.gz | https://drive.google.com/file/d/1Eqnu5dr0ovmzVSdLzsu7hM6AcPAJY34_/view?usp=sharing |
echo "create database byllm; create database mner; create database wikift;" | cypher-shell -a bolt://localhost:
7687 -u neo4j -p neo4j -d neo4j
cat zhaoying_graph_db/byllm.cypher | cypher-shell -a bolt://localhost:7687 -u neo4j -p neo4j -d byllm
cat zhaoying_graph_db/mner.cypher | cypher-shell -a bolt://localhost:7687 -u neo4j -p neo4j -d mner
cat zhaoying_graph_db/wikift.cypher | cypher-shell -a bolt://localhost:7687 -u neo4j -p neo4j -d wikift
python3 create_vector_db_zy.py --host <host> --username <username> --password <password> --output <path/to/vectordb>
prebuilt vectordb | url |
---|---|
vectordb_zy.tar.gz | https://drive.google.com/file/d/1WhVS56PLMNLwJ8MwGVPZVMOPwDLgKlc3/view?usp=sharing |
bash batch_retriever.sh
bash batch_retriever_zy.sh
the output files are under directory output.
bash batch_spacy.sh
the output files are under directory output_spacy
bash batch_entities.sh