- Write your own OpenAI API keys into
agentcf/props/AgentCF.yaml
, such asapi_key_list: ['xxx', 'xxx']
. - Optimize user agents and item agents on CDs dataset.
cd agentcf/ export api_base="Your openai.api_base" python run.py -m AgentCF -d CDs-100-user-dense --train_batch_size=20 --eval_batch_size=200 --max_his_len=20 --MAX_ITEM_LIST_LENGTH=20 --epochs=1 --shuffle=False --api_batch=20 --test_only=False
- Evaluate (i.e. interaction inference)
cd agentcf/ export api_base="Your openai.api_base" python run.py -m AgentCF -d CDs-100-user-dense --train_batch_size=20 --eval_batch_size=200 --max_his_len=20 --MAX_ITEM_LIST_LENGTH=20 --epochs=1 --shuffle=False --api_batch=20 --test_only=True
- We can directly load the pre-trained user agents and item agents on CDs dataset.
cd agentcf/ export api_base="Your openai.api_base" python run.py -m AgentCF -d CDs-100-user-dense --train_batch_size=20 --eval_batch_size=200 --max_his_len=20 --MAX_ITEM_LIST_LENGTH=20 --epochs=1 --shuffle=False --api_batch=20 --test_only=True --loaded=True --saved=False --saved_idx=1000
- You can choose different prompting strategies, including Basic Prompting Strategy (B), sequential-enhanced (B+H), and retrieval-augmented (B+R), by setting the evaluation mode in the
agentcf/props/AgentCF.yaml
file asevaluation: basic/rag/sequential
forked from leoleojie/AgentCF-WWW
-
Notifications
You must be signed in to change notification settings - Fork 0
RUCAIBox/AgentCF
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%