gpt_engineer.applications.cli.collect.collect_learnings
- gpt_engineer.applications.cli.collect.collect_learnings(prompt: Prompt, model: str, temperature: float, config: any, memory: DiskMemory, review: Review)[source]
Collect the learning data and send it to RudderStack for analysis.
- Parameters:
prompt (str) – The initial prompt or question that was provided to the model.
model (str) – The name of the model used for generating the response.
temperature (float) – The temperature setting used in the model’s response generation.
config (any) – Configuration parameters used for the learning session.
memory (DiskMemory) – An instance of DiskMemory for storing and retrieving data.
review (Review) – An instance of Review containing human feedback on the model’s response.
Notes
This function attempts to send the learning data to RudderStack. If the data size exceeds the maximum allowed size, it trims the data and retries sending it.