This open-source project aims to write surveys faster.
- Python 3.8+
- Dependencies listed in
requirements.txt - Cuda installed GPU (Windows)
- Download database from here
- Clone the repository
- Navigate to the project directory
- Install the required dependencies:
pip install -r requirements.txt
Complete everything in one command:
python launch_survey.py --topic "Comparative Analysis: Prediction Markets vs Traditional Polling in the 2024 US Presidential Election"
--gpu 0
--saving_path ./output
--model gpt-4o-2024-05-13
--section_num 7
--subsection_len 700
--rag_num 60
--outline_reference_num 1500
--db_path ./database
--embedding_model nomic-ai/nomic-embed-text-v1
--api_url https://api.openai.com/v1/chat/completions
--api_key sk-xxxxxx
Generate outline only:
python launch_survey.py --topic "Comparative Analysis: Prediction Markets vs Traditional Polling in the 2024 US Presidential Election"
--gpu 0
--saving_path ./output
--model gpt-4o-2024-05-13
--section_num 7
--subsection_len 700
--rag_num 60
--outline_reference_num 1500
--db_path ./database
--embedding_model nomic-ai/nomic-embed-text-v1
--api_url https://api.openai.com/v1/chat/completions
--api_key sk-xxxxxx
--write_type outline
Generate content only:
python launch_survey.py --topic "Comparative Analysis: Prediction Markets vs Traditional Polling in the 2024 US Presidential Election"
--gpu 0
--saving_path ./output
--model gpt-4o-2024-05-13
--section_num 7
--subsection_len 700
--rag_num 60
--outline_reference_num 1500
--db_path ./database
--embedding_model nomic-ai/nomic-embed-text-v1
--api_url https://api.openai.com/v1/chat/completions
--api_key sk-xxxxxx
--write_type content
--outline_file xxxxxx.md
For export to docx format, please install Pandoc and run
pandoc -s xxxxxx.md -o output.docx