Skip to content

Firefox-AI/insights_eval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository is for the work of AI-mode insight model evaluation

Profile Generation

There are multiple steps to generate the profiles and persona for this evaluation work, all the scripts are in data_generation directory. Please execute the code under data_generation directory.

  1. The base persona file is created by chatGPT, but it can be any json file like it as long as it includes "persona_name" and "description" for later use.
  2. Run python build_persona.py or python build_complex_persona.py to create realistic persona.
  3. Run python create_queries_from_persona.py to create possible queries from each persona.
  4. Run python get_ddg_results.py to retrieve top N search results for each query.
  5. Run python label_queries_and_websites.py to label category and intent of each query / page.
  6. Run python refine_queries_and_websites.py to trim off the less relevant ones.
  7. Run python synthesize_intermediate_profiles.py --bank-dir "./refined_websites", --output-dir "./refined_records" to synthesize user profile intermediate result as input of evaluation pipeline.
  8. Run python generate_llm_insights.py --profile-dir "./refined_records" --output-dir "./gpt_insights_from_refined_records" to generate gpt version insight for evaluation.

About

Evaluation suite for Insights

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages