This is the pytorch implementation of AutoGraph proposed in the paper An Automatic Graph Construction Framework based on Large Language Models for Recommendation.
pip install torch --index-url https://download.pytorch.org/whl/cu118
pip install dgl-cu118 -f https://data.dgl.ai/wheels/repo.html
pip install vllm transformers vector-quantize-pytorch
Download the original dataset, put them under directory 'Datasets', and run the notebooks in Preprocess.
Inference on user preference and item knowledge.
python gen_knowledge.pyEncode the inferenced knowledges into vectors.
python gen_embedding.pypython quantization.pypython main.py --plus_gnn_embed