Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SurveyRaby

Overview

This open-source project aims to write surveys faster.

Getting Started

Prerequisites

  • Python 3.8+
  • Dependencies listed in requirements.txt
  • Cuda installed GPU (Windows)
  • Download database from here

Installation

  1. Clone the repository
  2. Navigate to the project directory
  3. Install the required dependencies:
pip install -r requirements.txt

Run

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

Export

For export to docx format, please install Pandoc and run

pandoc -s xxxxxx.md -o output.docx

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages